[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53359] evalin overwrites ans in the caller wo
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #53359] evalin overwrites ans in the caller workspace |
Date: |
Fri, 16 Mar 2018 14:30:34 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0 |
Update of bug #53359 (project octave):
Status: None => Wont Fix
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #2:
This is very similar to bug #46397.
>> 11
ans = 11
>> x = eval ('12')
x = 12
>> ans
ans = 12
In that bug report, Rik expressed the opinion that the Octave behavior makes
more sense. Since the code in the eval expression may have other side effect
that do affect the calling environment, why should updating the 'ans' variable
be any different?
I personally think that code shouldn't rely on the value of 'ans' at all, so I
agree that this is not worth fixing.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53359>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/