Menu

#134 Variables visibility

open
None
5
2011-04-26
2011-04-26
Tony
No

This code is valid in SL:

string s="global";

default
{
state_entry()
{
llSay(0, s);
string s="first";
if (s!="") {
string s="second";
llSay(0, s);
}
llSay(0, s);
}

}

and will return

global
second
first

but in LSLPlus it's not allowed to define string s="second";

I rely on LSLPlus very much and would like to know how to help.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB