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

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

[Octave-bug-tracker] [bug #46397] eval: The evaluated code should not af


From: Oliver Heimlich
Subject: [Octave-bug-tracker] [bug #46397] eval: The evaluated code should not affect last result
Date: Sat, 07 Nov 2015 15:07:20 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.4.0

Follow-up Comment #1, bug #46397 (project octave):

The following algorithm should do the trick:

1. Store the state of `ans` in the target context (caller or base).

2. Evaluate the script.

3. Use the current state of `ans` in the target context as the return value
for eval (or evalin).

4. Reset the state of `ans` in the target context to the value stored in step
1.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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