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

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

[Octave-bug-tracker] [bug #29433] clear <var_name> leaves remnants when


From: Jaroslav Hajek
Subject: [Octave-bug-tracker] [bug #29433] clear <var_name> leaves remnants when var_name is a global variable
Date: Wed, 07 Apr 2010 06:34:10 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100204 SUSE/3.5.8-0.1.1 Firefox/3.5.8

Update of bug #29433 (project octave):

             Assigned to:                    None => highegg                

    _______________________________________________________

Follow-up Comment #1:

>According to the documentation, clear <var_name> removes the variable from
the local and global symbol tables. 

This is not true neither in Octave nor Matlab. 

octave:1> global a = 1
octave:2> clear a
octave:3> global a
octave:4> a
a =  1

It doesn't seem to me that the documentation implies otherwise. In any case,
feel free to clarify it.

The observed autocompletion behavior is caused by the fact that  Octave
includes global variables in the completion. Alas, this is only useful to
complete a possible global declaration (otherwise the globals are not visible,
and afterwards they are in local scope), so maybe we shouldn't do it.

Possible patch attached.


(file #20147)
    _______________________________________________________

Additional Item Attachment:

File name: 10492.diff                     Size:1 KB


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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