slang-users mailing list

[2006 Date Index] [2006 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] Implicit variable declarations


> 
> 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]