[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55774] Subsasign on class member: a cs-list c
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #55774] Subsasign on class member: a cs-list cannot be further indexed |
Date: |
Sat, 9 Mar 2019 10:59:01 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #3, bug #55774 (project octave):
This issue may be because numel is being called inappropriately.
I used a modified version of the A class below.
classdef A < handle
properties
list
end
methods
function self = A()
self.list = {1,2};
end
function r = numel (self)
keyboard;
r = numel (self.list);
end
end
end
Then I executed
a = A();
a.list(3) = 4;
What happens next is that the numel() function for the A class is called and I
hit the keyboard statement. This does not appear to be correct. If the
interpreter was validating that the index 3 is okay it needs to call numel on
(a.list) which is a cell array. Instead, it seems that it may be checking
that numel (a).
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55774>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #55774] Subsasign on class member: a cs-list cannot be further indexed,
Rik <=