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: Guillaume
Subject: [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error
Date: Tue, 23 Apr 2019 06:55:28 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

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

x() returns x for built-in arrays objects but in recent Matlab versions there
is now a warning discouraging its use:


>> x = {1, 2; 3, 4}
x =
  2x2 cell array
    {[1]}    {[2]}
    {[3]}    {[4]}
>> x()
Warning: A value of class "cell" was indexed with no subscripts specified.
Currently the result of this operation is
the indexed value itself, but in a future release, it will be an error. 
ans =
  2x2 cell array
    {[1]}    {[2]}
    {[3]}    {[4]}


    _______________________________________________________

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]