Post Reply 
variable initial value - bug? (rev. 8151)
09-26-2015, 03:03 PM
Post: #1
variable initial value - bug? (rev. 8151)
Hi,

I created very simple program.
It just returns value of k variable, which is initially set to 1.

After first execution it returns 1 (as expected), but when it runs second time (without editing and compiling) it returns 0.
The k variable is local, so it should not remember value after program finishes.
Besides it is set initially to 1, so why the second run returns 0?
Then, if you go in edit mode and re-run the program it again will return 1.

Is it a bug?

Code:
local k=1;

EXPORT VAR_TEST()
BEGIN
 PRINT();
 PRINT(k);
 IF k=1 THEN
  k:=0;
 END;
END;

BR,
Piotr
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
variable initial value - bug? (rev. 8151) - komame - 09-26-2015 03:03 PM



User(s) browsing this thread: 1 Guest(s)