octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #64305] inputParser.addParameter fails on defa


From: A.R. Burgers
Subject: [Octave-bug-tracker] [bug #64305] inputParser.addParameter fails on default value {}
Date: Sat, 17 Jun 2023 16:56:32 -0400 (EDT)

Follow-up Comment #1, bug #64305 (project octave):

attached a cset that might fix this by creating a temporary struct for cell
type defaults:


      if iscell(def)
        # see bug 64305
        tmp = struct ("name", name, "def", [], "val", val);
        tmp.def = def;
        this.Parameter(end+1) = tmp;
      else
        this.Parameter(end+1) = struct ("name", name, "def", def, "val",
val);
      endif


(file #54845)

    _______________________________________________________

Additional Item Attachment:

File name: b64305.cset                    Size:1 KB
    <https://file.savannah.gnu.org/file/b64305.cset?file_id=54845>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64305>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]