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

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

[Octave-bug-tracker] [bug #51586] Creating method handle fails using str


From: Piotr Held
Subject: [Octave-bug-tracker] [bug #51586] Creating method handle fails using str2func
Date: Sat, 29 Jul 2017 12:05:17 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Follow-up Comment #5, bug #51586 (project octave):

I just was trying to get a handle to a method working somehow and I found that
this way worked in 4.0.3. So I looked why it doesn't currently work and
'fixed' it. The function
libinterp/octave-value/ov-fcn-handle.cc:make_fcn_handle
<http://octave.org/doxygen/dev/d0/d92/ov-fcn-handle_8cc_source.html#l01422>
already did the parsing. I just needed to make sure str2func actually ran
make_fcn_handle instead of trying (and failing) to create an anonymous
function.

I never argued that &quot;lazy evaluation&quot; should be a thing. I just
wanted to mention that Matlab does in fact do just that. 

I really want to create a function handle to class method, even if the
creation happens only within the class scope. So should I bring it up on the
mailing list?


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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