Page 1 of 1

Why does the scripting engine care about whitespace?

Posted: 05 Aug 2010 21:17
by vegard
This does what I expect it to:

Code: Select all

set $a, "<curname>"; msg "current selected item: $a";
, this does not:

Code: Select all

set $a, "<curname>"; 
msg "current selected item: $a";
Why?
Seems impractical too me, to have to use a variable on the same line that you define and set it.

Re: Why does the scripting engine care about whitespace?

Posted: 05 Aug 2010 21:34
by TheQwerty
That's just the way it is harking back to the first days of script files.
You can split it onto multiple lines by indenting lines.

Code: Select all

set $a, "<curname>";
  msg "current selected item: $a";
Don has expressed a desire to move away from this restriction but I don't think it's anytime soon on his roadmap.