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

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

[Octave-bug-tracker] [bug #51567] Creating a function handle to method f


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #51567] Creating a function handle to method from within another method fails
Date: Thu, 11 Jun 2020 09:50:50 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

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

I believe that part of this problem is fixed after this changeset:

  http://hg.savannah.gnu.org/hgweb/octave/rev/e760fef2829c

I also added a test that attempts to verify that the bug is fixed:

  http://hg.savannah.gnu.org/hgweb/octave/rev/5bca1527b034

Now, I see that creating a function handle with the @FCN syntax appears to
work but using str2func ("FCN") fails.  I assume that both should work, but
I'm not certain that Matlab treats @FCN identically to str2func in all cases. 
I think Octave's current implementation of str2func is always creating a
"simple" function handle but the @FCN is searching for class methods and
nested functions when creating the function handle.  Before proceeding, I'd
like verification of Matlab behavior.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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