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

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

[Octave-bug-tracker] [bug #56856] class method calls overloaded function


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #56856] class method calls overloaded function instead of basic function
Date: Wed, 4 Sep 2019 18:44:27 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36

Follow-up Comment #3, bug #56856 (project octave):

Ok, I see the new example does what you describe.

I also think that this example agrees with the Matlab documentation.
Specifically, on this page
<https://www.mathworks.com/help/matlab/matlab_oop/indexed-assignment.html>, it
says

> If A does not exist before you execute the assignment statement, then MATLAB
initializes the five array elements that come before A(2,3) with default
objects of class B.

To my reading, that says that 'val' should indeed be an object array of type
'test' when the subsasgn method is called assigning a new instance of 'test'
into a non-existent array. So I think that Octave is still behaving
correctly.

Do you have any data, documentation, or example output from Matlab (and which
version of Matlab) showing a different behavior?

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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