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

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

[Octave-bug-tracker] [bug #54318] inputParser parse error for struct wit


From: anonymous
Subject: [Octave-bug-tracker] [bug #54318] inputParser parse error for struct with no fields
Date: Mon, 16 Jul 2018 10:16:54 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.1 Safari/605.1.15

URL:
  <http://savannah.gnu.org/bugs/?54318>

                 Summary: inputParser parse error for struct with no fields
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 16 Jul 2018 02:16:52 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: Lucas Jeub
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.0
        Operating System: Mac OS

    _______________________________________________________

Details:

Using the struct expansion feature of inputParser with a struct with no fields
as input produces an error instead of returning default values in Results. 

To reproduce the problem consider the following minimal example:


test = inputParser();
addParameter(test, 'param', 1)
parse(test, struct())


which produces the following error:


error: non-string for Parameter name or Switch
error: called from
    error at line 553 column 7
    parse at line 459 column 11









    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54318>

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




reply via email to

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