|
From: | Julien Bect |
Subject: | [Octave-bug-tracker] [bug #39790] "clear" also removes variables from the global workspace |
Date: | Thu, 15 Aug 2013 10:14:34 +0000 |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:23.0) Gecko/20100101 Firefox/23.0 |
URL: <http://savannah.gnu.org/bugs/?39790> Summary: "clear" also removes variables from the global workspace Project: GNU Octave Submitted by: jbect Submitted on: jeu. 15 août 2013 10:14:32 GMT Category: Interpreter Severity: 3 - Normal Priority: 5 - Normal Item Group: Matlab Compatibility Status: None Assigned to: None Originator Name: Julien Bect Originator Email: Open/Closed: Open Discussion Lock: Any Release: dev Operating System: GNU/Linux _______________________________________________________ Details: Calling "clear" from the prompt or from within a function currently removes all variables from both the current (base or local) workspace and the global workspace. The following code demonstrates this: octave:1> global x octave:2> x = 3; octave:3> who Variables in the current scope: ans x octave:4> who global Global variables: x octave:5> clear octave:6> who octave:7> who global octave:8> For Matlab compatibility, "clear" should only remove variables from the current (base or local) workspace, but not from the global workspace. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?39790> _______________________________________________ Message posté via/par Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |