|
From: | Lars Kindermann |
Subject: | [Octave-bug-tracker] [bug #53027] Strange behavior of globals with load |
Date: | Thu, 1 Feb 2018 07:07:06 -0500 (EST) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0 |
Follow-up Comment #1, bug #53027 (project octave): It seems there is incorrectly created a second handle to the global X somewhere. The bug is very nasty because many scripts now give bad results without any notice. It must habe been introduced within the last month or so. Here is a very basic script that demonstrates the error more clearly: global X function loadX() global X load fileX end X=1; save fileX X X=2; load fileX X X=3; loadX() X clear all X This should be the correct output (Version 4.0): >> bugGlobal2 X = 1 X = 1 error: 'X' undefined near line 20 column 2 error: called from bugGlobal4 at line 20 column 2 And this is from current dev: >> bugGlobal2 X = 1 X = 3 X = 3 _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?53027> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |