[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 15:22:55 -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 #6, bug #56856 (project octave):
I would also like to point out that if the LHS value is passed as a double
array, then a simple override like this that currently works in Octave would
start to fail:
function y = subsasgn (a, s, b)
a(s.subs{:}) = b;
y = a;
endfunction
I'm also confused why the 'val' value is passed in as a double array, but a
direct call to subsasgn like this with a builtin class fails in Matlab:
y = subsasgn (zeros(1, 10), substruct('()', {10}), inputParser())
The following error occurred converting from inputParser to double:
Conversion to double from inputParser is not possible.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56856>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56856] class method calls overloaded function instead of basic function, anonymous, 2019/09/04
- [Octave-bug-tracker] [bug #56856] class method calls overloaded function instead of basic function, Mike Miller, 2019/09/04
- [Octave-bug-tracker] [bug #56856] class method calls overloaded function instead of basic function, anonymous, 2019/09/04
- [Octave-bug-tracker] [bug #56856] class method calls overloaded function instead of basic function, Mike Miller, 2019/09/04
- Message not available
- [Octave-bug-tracker] [bug #56856] Matlab calls class subsasgn method with array of double instead of class type, Mike Miller, 2019/09/09
- [Octave-bug-tracker] [bug #56856] Matlab calls class subsasgn method with array of double instead of class type,
Mike Miller <=
- [Octave-bug-tracker] [bug #56856] Matlab calls class subsasgn method with array of double instead of class type, anonymous, 2019/09/09
- [Octave-bug-tracker] [bug #56856] Matlab calls class subsasgn method with array of double instead of class type, anonymous, 2019/09/09
- [Octave-bug-tracker] [bug #56856] Matlab calls class subsasgn method with array of double instead of class type, Mike Miller, 2019/09/10