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

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

[Octave-bug-tracker] [bug #59950] exist function


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #59950] exist function
Date: Sat, 30 Jan 2021 07:16:08 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0

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

FWIW, Matlab (2021a prerelease) even accepts this:

>> exist ('', '')
ans =
     0
>> exist ('')  % A variable with an empty name obviously doesn't exist
ans =
     0
>> exist (struct ([]))
ans =
     0
>> 


I don't see it documented either but I agree with Arnaud that it could be
useful behavior; at least not harmful AFAICS and to some extent even
consistent.
My situation is more or less similar situation to Arnaud's (large code base
partly 20+ years old) so maybe that is why I sympathize.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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