[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46571] classdef numel method not consulted fo
From: |
Andres Codas |
Subject: |
[Octave-bug-tracker] [bug #46571] classdef numel method not consulted for cell-indexed assignment |
Date: |
Wed, 25 Apr 2018 10:15:36 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #12, bug #46571 (project octave):
This piece of code is working on octave 4.0.3 but not on octave 4.2.2. I
suspect this discussion is related to the issue.
Consider the class LP.m:
```
classdef LP
properties
eqs
A
end
methods
function problem = LP(eqs)
problem.eqs = eqs;
end
function n = numel(problem)
n = numel(problem.eqs);
end
end
end
```
If I run the script:
>> p = LP(zeros(2,1));
>> p.A = 1;
I get:
error: invalid assignment to cs-list outside multiple assignment
_______________________________________________________
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,
Andres Codas <=