[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 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;

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:


  Message sent via Savannah

reply via email to

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