[Top][All Lists]

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

[Octave-bug-tracker] [bug #56856] Matlab calls class subsasgn method wit

From: Mike Miller
Subject: [Octave-bug-tracker] [bug #56856] Matlab calls class subsasgn method with array of double instead of class type
Date: Mon, 9 Sep 2019 14:48:53 -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

Update of bug #56856 (project octave):

                Category:                    None => Interpreter            
                Priority:              5 - Normal => 3 - Low                
              Item Group:        Unexpected Error => WTF, Matlab?!?         
                 Summary: class method calls overloaded function instead of
basic function => Matlab calls class subsasgn method with array of double
instead of class type


Follow-up Comment #5:

I'm changing the summary line to reflect what I think this bug is now about.

At best this is undocumented internal Matlab behavior, and at worst, this is
an accident of the implementation that a user shouldn't rely on. It seems
prudent to me to avoid relying on the type or dimensions of the left hand side
value, other than to do the assignment that the subsasgn call is providing.

But if this is an important feature to you or others, a good first step would
be to work on a patch changing this behavior to show that it's feasible and
safe to make this change. I can't guarantee that it will become part of
Octave, but it's always worth doing the work if the change is important enough
to you.

Can you give a concrete example showing why it would be important to the user
to have an array of double instead of objects in this scenario? That might
help someone see the relative importance of this behavior, or to suggest
alternative workarounds to you.


Reply to this item at:


  Message sent via Savannah

reply via email to

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