The left arrow on its own is a compiled
local variable, and the X and Y are non-compiled local variables. Hence 3
values are required for your program to make the value assignments. You need two
variables each with left arrow as the first character in the name.
Jeremy
From:
Sent: 05 July 2009 21:11
To:
Subject: [50g] Can anyone answer a
question about compiled local variables?
I made a program that looks like this: << Right
Arrow (0 key) and a left arrow from the CHAR menu followed by X Y << X Y
+ >> >>.
1) No matter what the program is doing it drops 1 number in the stack above it.
2) If you only enter two numbers and their is no number above the two level
stack, you get an error.
3) If you try to enter a number into the program before the point where the
variables are initialized, all sorts of weird things happen and it won't let
you.
4) You don't end up with any extra variables at the end of the program
execution but then again I don't think its actually acting as a compiled local
variable with the left arrow added. If you remove it and just use regular local
variables theirs no problems.
5) So, can anybody write a simple program using compiled variables so I don't
have to PURGE all the variables I use all the time?