|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #54052] the global statement clears previously assigned values |
Date: | Mon, 18 Jun 2018 23:04:39 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #15, bug #54052 (project octave): As a test case x = 12 global x clear x x = 4 global x In this case, x assumes the value of 12. This is correct, but there is no warning: "warning: global: global value overrides local value" for the second global statement. For the first global statement, I agree that a more appropriate warning would be 'initialized to existing local variable'. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?54052> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |