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

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

[Octave-bug-tracker] [bug #54052] the global statement clears previously


From: Lars Kindermann
Subject: [Octave-bug-tracker] [bug #54052] the global statement clears previously assigned values
Date: Fri, 15 Jun 2018 19:34:59 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0

Follow-up Comment #12, bug #54052 (project octave):

This introduced a strange behaviour


>> x=12
x =  12
>> global x
warning: global: 'x' is defined in the current scope
warning: global: in a future version, global variables must be declared before
use
warning: global: global value overrides local value
>> x
x =  12
>> clear x
>> x=13
x =  13
>> global x
warning: global: 'x' is defined in the current scope
warning: global: in a future version, global variables must be declared before
use
>> x
x =  12
>>


So despite of "clear x" the global value of x still persists somewhere...

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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