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

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

[Octave-bug-tracker] [bug #63841] subsref gets wrong number of varargout


From: A.R. Burgers
Subject: [Octave-bug-tracker] [bug #63841] subsref gets wrong number of varargout elements
Date: Sun, 26 Feb 2023 17:23:23 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?63841>

                 Summary: subsref gets wrong number of varargout elements
                   Group: GNU Octave
               Submitter: arb
               Submitted: Sun 26 Feb 2023 10:23:21 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 26 Feb 2023 10:23:21 PM UTC By: A.R. Burgers <arb>
consider this minimal class with a subsref method


classdef foo
  methods
    function varargout = subsref(obj, s)
      no = nargout
    end
  end
end


and this use of the foo class, which requests subsref to return 2 outputs:


fi = foo;
[a, b] = fi.call_a_method;


octave-8.0.91 - correctly - returns 2 for no, octave-9.0.0 returns 1

octave-9.0.0 hg-id=c80cf1588ed0







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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