Why does the scripting engine care about whitespace?

Discuss and share scripts and script files...
Post Reply
vegard
Posts: 76
Joined: 31 Jan 2010 15:45
Location: Sandnes, Norway

Why does the scripting engine care about whitespace?

Post 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.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Why does the scripting engine care about whitespace?

Post 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.

Post Reply