RE: booleans
I treat all variable names as 'holders' of a sort.
They dont actually hold anything untill you give them something to hold.
If i understand you correctly, your looking for a method to
check if the variable has been assigned a value yet within the
program. For some reason or another, the syntax checker does
this, but there isnt a user function to do this. That said,
i would also say you might try initializing all your variables
if you are in the habit of testing their state very often.
A sequence would therefore be initialized with ""
and an atom or integer with a 0 (numerical zero).
Ive run into this kind of thing a lot too, and that got me into the
habit of intializing a lot of my variables early on in the program
with the null value for that kind of variable so that testing later
doesnt produce a run time error in any case.
For objects you will have to decide what to use as an intializer.
Good luck with it.
--Al
|
Not Categorized, Please Help
|
|