octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55223] can't subsasgn with 2-level index (cur


From: anonymous
Subject: [Octave-bug-tracker] [bug #55223] can't subsasgn with 2-level index (curly braces + parentheses) with classdef handle
Date: Sat, 12 Jan 2019 19:03:11 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Follow-up Comment #4, bug #55223 (project octave):

whoops..
i came across an issue which i think is related. I tried in Windows/4.4.0 and
Ubuntu 4.2.2 

For class:


classdef ASB < handle
  methods
    function varargout = subsref(self,s)
    end
    function self = subsasgn(self,s,v)
    end
  end
end


Non of the following 2-or-more level indizes/subsref assigns work. Neither
subsref nor subsasign are called. In Matlab subsasign is called.


a.x.x = 1; %  subsref: unknown method or property: x
a.x(1) = 1; %  subsref: unknown method or property: x
a{1}.w = 1; % object cannot be indexed with `{'

a(1).h.e.l.l.o = 1 % works!

 
Jonas

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55223>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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