[slang-users] Implicit variable declarations
Michael Noble
mnoble at space.mit.edu
Tue Mar 7 09:55:56 EST 2006
>
> variable x = [1:100:1];
> newvar = @x;
> is_defined("newvar");
Then I believe this is a namespace issue.
slsh> implements("foo")
slsh> x = [1:100]
slsh> newvar = @x
slsh> is_defined("foo->newvar")
-2
slsh> is_defined("newvar")
0
The print() works because it operates in the current namespace,
which in slsh for example, is by default unnamed.
HTH,
-Mike
More information about the slang-users-l
mailing list