|
From: | Dave Goel |
Subject: | [Octave-bug-tracker] [bug #46571] classdef numel method not consulted for cell-indexed assignment |
Date: | Wed, 2 May 2018 02:26:52 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36 |
Follow-up Comment #17, bug #46571 (project octave): Joris (CasADi developer) provides this SSCCE of the bug - classdef Foo methods function r=size(self) r = [2 3]; end function r=numel(self) r = 6; end end end numel(Foo) % 6 cellfun('numel',{Foo Foo}) % [1 1] Joris also mentions: "I think the classdef.cc needs some love.. You can refer to https://savannah.gnu.org/bugs/?46571, which is similar, and whose patch perhaps would have already fixed it if the added numel were virtual." _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?46571> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |