[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Local variable initialization



PureBytes Links

Trading Reference Links


On Mar 22, 2007, at 3:21 PM, DH wrote:

if false then begin
  var: n1(10);
end;
plot1(n1, "test");

This won't work because n1 does not exist outside of the scope (begin ... end) of the if statement. A better test would be to print the value of n1 right after it's declared and see if it always prints the same in the if statement.

I don't have TS installed, can someone tell me what happens in this case?

	Thanks in advance, Joel

--
http://wagerlabs.com/