|
From: | Mike Miller |
Subject: | [Octave-bug-tracker] [bug #45835] inconsistent behaviour of eval inside anonymous functions |
Date: | Thu, 27 Aug 2015 21:46:13 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Firefox/38.0 |
Update of bug #45835 (project octave): Release: 3.8.2 => dev Operating System: Microsoft Windows => Any _______________________________________________________ Follow-up Comment #2: In Matlab: >> clear all >> f=@(t)eval('t'); >> f(2) t = 2 >> f('asdf') t = asdf >> clear all >> f=@(t) eval('sin(t)'); >> f(1) ans = 0.8415 >> t Undefined function or variable 't'. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?45835> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |