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

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

[Octave-bug-tracker] [bug #52568] str2func can't create a "lazy" handle


From: Andy Potvin
Subject: [Octave-bug-tracker] [bug #52568] str2func can't create a "lazy" handle to function which does not exist when str2func is executed
Date: Wed, 27 Feb 2019 01:41:27 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36

Follow-up Comment #11, bug #52568 (project octave):

This bug should have a higher priority.  Octave's functionality is
incompatible with MATLAB.  An error should not issue until the function is
invoked.

But MATLAB does NOT allow you to put in ANY string without erroring
immediately.  E.g. (in 2012a)

fcn_h = str2func('Some.Cra?zyName');
Warning: The input to STR2FUNC "Some.Cra?zyName" is not a valid function name.
This will generate an error in a future release.

Perhaps a documented Octave setting(s) could be created to specify what should
happen.  By default, Octave should do what MATLAB does.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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