- Subject: Re: [slang-users] Implicit variable declarations
- From: Michael Noble <mnoble@xxxxxxxxxxxxx>
- Date: Tue, 7 Mar 2006 09:55:56 -0500
>
> 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
_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html
[2006 date index]
[2006 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]