|
| From: | Kai Torben Ohlhus |
| Subject: | [Octave-bug-tracker] [bug #40938] interaction among eval, anonymous function, and functions |
| Date: | Wed, 26 Feb 2020 02:07:37 -0500 (EST) |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36 |
Update of bug #40938 (project octave):
Status: Confirmed => Invalid
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #4:
Agree to Andrew. Maybe things changed in Matlab since 2014, or they read and
fixed their bug before Octave became compatible to it ;-)
For Matlab R2019a I get:
>> doit_good
pi2 =
3.1416
>> doit_bad
Error using eval
Undefined function or variable 'pi2'.
Error in doit_bad>@(var)eval([var,'2']) (line 2)
pi2 = pi; get2 = @(var) eval([var,'2']); get2('pi')
Error in doit_bad (line 2)
pi2 = pi; get2 = @(var) eval([var,'2']); get2('pi')
Closing item.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?40938>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |