[slang-users] Implicit variable declarations

Robert Milaszewski rmilas at head.cfa.harvard.edu
Tue Mar 7 08:59:02 EST 2006


I am using slang2 and here is the issue that I encountered
Consider sample code :

variable x = [1:100:1];
newvar = @variable;
is_defined("newvar");

is_defined returns 0 which means newvar is not defined.
But I can do print(newvar) and I get valid values;
What am I missing?

thanks,
RobertM




More information about the slang-users-l mailing list