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

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

[Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' shoul


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error
Date: Tue, 23 Apr 2019 07:26:04 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #16, bug #56167 (project octave):

Guillaume: Thanks.  Do you get the same warning for numeric objects or just
cell arrays?

I also noticed that if I make x() error for cell arrays, a containers.Map test
fails.  For example


m = containers.Map (realmax ("double"), pi)
m.keys ()


fails in the subsref method for Map where it does where it does  


sref = subsref (sref, s(2:end));


At that point, s is a 1x2 struct array with type => '.', '()'  and subs =>
"keys", {} so the () part fails because the index is empty.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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