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: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #52568] str2func can't create a "lazy" handle to function which does not exist when str2func is executed
Date: Sat, 2 Dec 2017 09:41:47 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 SeaMonkey/2.48

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

I intentionally didn't write it in comment #1 but now that Markus revealed
this was discussed before I'll do mention:

Note that this is undocumented Matlab behavior (although less clear-cut). The
Matlab docs only mention variable names (+ of course anonymous functions,
function names, etc.), but definitely not arbitrary strings.

@Johannes I feel with you, but Octave developers would have a hard time making
Octave accept all sloppy Matlab code out there that yet runs fine in Matlab.
OTOH for this specific case, somewhere in the thread dug up by Markus the
suggestion was made to just defer parsing str2func's input arg until the
handle is really invoked. Maybe that can be acceptable for Octave in the
future.

BTW what Matlab package do you refer to? supplied by TMW itself, or by a third
party?


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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