[Top][All Lists]

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

[Octave-bug-tracker] [bug #52568] str2func erroneously checks for presen

From: Johannes Pfeifer
Subject: [Octave-bug-tracker] [bug #52568] str2func erroneously checks for presence of file
Date: Fri, 1 Dec 2017 09:32:44 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

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

Thanks for looking into this. My problem is that the check in Octave is
stricter than Matlab's, making existing Matlab code incompatible with Octave.

Matlab will of course crash once you invoke the handle to a non-existing
function. But I use a Matlab package that creates a handle from an arbitrary
string, but does not actually invoke the handle if the function specified by
the string does not (yet) exist. Of course this is not optimal, but Matlab has
no problem with this sequence of events. 

I would simply like Octave to maintain Matlab compatibility, i.e. have
str2func return a handle and only throw an error once the handle to something
not existing is invoked.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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