octave-maintainers
[Top][All Lists]
Advanced

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

Re: Bug: clear leaves global variables in symbol table


From: Jaroslav Hajek
Subject: Re: Bug: clear leaves global variables in symbol table
Date: Mon, 8 Jun 2009 08:01:32 +0200

On Sun, Jun 7, 2009 at 12:15 AM, Rik<address@hidden> wrote:
> 6/6/09
>
> In the Mercurial tip, 'clear' by itself should remove both local and
> global variables according to the documentation.  Instead it only
> appears to remove global variables but they still exist according to
> 'who global'.
>
> Code to reproduce:
> global abc = 1
> who
> =>
> Variables in the current scope:
>
> abc  ans
> ----------------
> clear
> who
> =>
> (blank)
> ---------------
> who global
> =>
> Global variables:
>
> abc
> ----------------
>
> The behavior is correct if 'clear -g' is used instead of just 'clear'.
>
> --Rik
>

I checked in the following patch:
http://hg.savannah.gnu.org/hgweb/octave/rev/3a447ea9e77b

thanks

-- 
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz



reply via email to

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