[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46571] classdef numel method not consulted fo
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #46571] classdef numel method not consulted for cell-indexed assignment |
Date: |
Wed, 21 Feb 2018 03:22:50 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0 |
Follow-up Comment #5, bug #46571 (project octave):
I've verified that Sébastien's patch applies and introduces no regressions in
the test suite, but a test case would be good (as we talked about on irc).
As we also talked about on irc, this may not be a complete solution,
Sébastien mentioned looking at the Matlab object method
numArgumentsFromSubscript, which I think is supposed to override how nargin
and nargout are interpreted for subsref and subsasgn.
I'll also note that this change *does* break some indexing behavior that I am
relying on in pytave. If we do apply this patch, on either the stable or
default branch, I would appreciate some help in figuring out how to get pytave
subsasgn working again.
I do think this patch is worth applying ultimately, even if it's not a
complete solution to the overall class indexing problem. It definitely should
be possible for a user class to override numel, which isn't possible today.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46571>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #46571] classdef numel method not consulted for cell-indexed assignment, Avinoam Kalma, 2018/02/19
- [Octave-bug-tracker] [bug #46571] classdef numel method not consulted for cell-indexed assignment,
Mike Miller <=
- [Octave-bug-tracker] [bug #46571] classdef numel method not consulted for cell-indexed assignment, Sébastien Villemot, 2018/02/21
- [Octave-bug-tracker] [bug #46571] classdef numel method not consulted for cell-indexed assignment, Mike Miller, 2018/02/21
- [Octave-bug-tracker] [bug #46571] classdef numel method not consulted for cell-indexed assignment, Sébastien Villemot, 2018/02/21
- [Octave-bug-tracker] [bug #46571] classdef numel method not consulted for cell-indexed assignment, Mike Miller, 2018/02/21
- [Octave-bug-tracker] [bug #46571] classdef numel method not consulted for cell-indexed assignment, Mike Miller, 2018/02/21
- [Octave-bug-tracker] [bug #46571] classdef numel method not consulted for cell-indexed assignment, Mike Miller, 2018/02/27