[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: anonymous
Subject: [Octave-bug-tracker] [bug #56856] Matlab calls class subsasgn method with array of double instead of class type
Date: Mon, 9 Sep 2019 18:11:43 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0

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

[comment #6 comment #6:]
> 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
In which context are you using this function? Why isn't it creating an
infinite loop?

> 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.
Sorry, I'm not familiar with inputParser... not sure what you expect to see


Reply to this item at:


  Message sent via Savannah

reply via email to

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