Bug? accessing LOCAL var in shared scope
|
12-03-2014, 10:37 PM
Post: #1
|
|||
|
|||
Bug? accessing LOCAL var in shared scope
I have been using LOCAL vars declared outside the programs, to get the equivalent of variables shared between routines in the same program, but not exported globally.
There is something strange going on whenever I try to use these variables as function arguments; they are not accessed at all. I always have to copy them to a local variable first. Example: Code: LOCAL foo=[[1,2],[3,4]]; I would expect both PRINT(colDim(foo)) and PRINT(colDim(bar)) to print out same number (2), but instead the output of the program is: Code: [[1,2],[3,4]] (Discovered in 6030; confirmed in 6940.) /Lennart Börjeson Stockholm, Sweden |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)