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

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

[Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous func


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous function handling
Date: Fri, 2 Apr 2021 12:21:51 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36 Edg/89.0.774.63

Follow-up Comment #18, bug #60237 (project octave):

Yes, that fails. But for a completely unrelated reason.
In Matlab R2021a:

>> bug_60237
Operator '+' is not supported for operands of type 'function_handle'.

Error in bug_60237 (line 3)
r = ancall (2) + 1;


Equivalent error in Octave:

>> bug_60237

error: binary operator '+' not implemented for 'function handle' by 'scalar'
operations
error: called from
    bug_60237 at line 3 column 3



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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