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

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

[Octave-bug-tracker] [bug #49389] inputParser changes order of Results s


From: Carlo de Falco
Subject: [Octave-bug-tracker] [bug #49389] inputParser changes order of Results structure depending on order by which parameters are assigned
Date: Sat, 17 Dec 2016 20:33:25 -0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:49.0) Gecko/20100101 Firefox/49.0

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

                 Summary: inputParser changes order of Results structure
depending on order by which parameters are assigned
                 Project: GNU Octave
            Submitted by: cdf
            Submitted on: Thu 20 Oct 2016 12:37:50 AM CEST
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

The following example demonstrates the issue

In Matlab 2016a:

%-- Matlab test --
>> ip = inputParser ();
>> ip.addParameter ('a', 1);
>> ip.addParameter ('b', 2);
>> ip.parse ('b', 2, 'a', 2);
>> ip.Results

ans = 

   a: 2
   b: 2
%-- end Matlab test --


In Octave 4.2-rc2:

%-- Octave test --
ip = inputParser ();
ip.addParameter ('a', 1);
ip.addParameter ('b', 2);
ip.parse ('b', 2, 'a', 2)
ip.Results
ans =

 scalar structure containing the fields:

   b =  2
   a =  2
%-- end Octave test --









    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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