octave-maintainers
[Top][All Lists]
Advanced

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

Re: str2func


From: John W. Eaton
Subject: Re: str2func
Date: Thu, 14 Mar 2019 02:27:47 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1

On 3/13/19 3:11 AM, address@hidden wrote:


On 13 Mar 2019, at 07:09, John W. Eaton <address@hidden> wrote:

It's intentional, for compatibility with Matlab.  There are a few bug reports 
about it.  But I was fixing a different bug when I also fixed the problem with 
str2func.

https://savannah.gnu.org/bugs/?func=detailitem&item_id=52568
https://savannah.gnu.org/bugs/?func=detailitem&item_id=31821

Why do you need to check?
indeed there is no real need to check but there are currently BIST tests
that expect this to be checked

Also, I would strongly recommend that people use function handles, not simple 
names in character strings.
unfortunately that is needed for compatibility

For now I checked in the following change that disables the BIST and also notes a possible way to check whether the handle references a valid function:

http://hg.savannah.gnu.org/hgweb/octave/rev/6bd408bde569

jwe




reply via email to

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