[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62639] inputParser fails to add Optional argu
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #62639] inputParser fails to add Optional argument with empty cell default value |
Date: |
Tue, 21 Jun 2022 08:04:00 -0400 (EDT) |
Follow-up Comment #2, bug #62639 (project octave):
OP here.
An easy solution will be to use instead of cellarray of structures, the
structarray:
In _inputParser.m:276_
Optional = struct("name", {}, "def", {}, "val", {});
Filling (line 328):
this.Optional{end+1}.name = name;
this.Optional{end}.def = def;
this.Optional{end}.val = val;
Accessing (line 401):
+verbatum+
opt = this.Optional(++idx);
-verbatum-
Essentually replacing {} by ().
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62639>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/