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

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

[Octave-bug-tracker] [bug #50884] isfigure([]) = []


From: Rik
Subject: [Octave-bug-tracker] [bug #50884] isfigure([]) = []
Date: Wed, 26 Apr 2017 13:07:56 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0

Follow-up Comment #3, bug #50884 (project octave):

Since isfigure() is an Octave-only feature, would it be useful to make a
special case for isfigure and isaxes to return true/false for the empty case?

For programming, I try and follow the principle of Least Surprise.  In this
case, since an empty matrix is not a figure, I would expect it to return
false.

But, Octave might already be relying on the current behavior.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50884>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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