Talk:LSL3

From Second Life Wiki
Jump to navigation Jump to search

I'd add the to this the switch/case statement. SInce LSL isn't a run-time scripting language, per se, it should be quite possible to at least allow optimizations for switch(integer) situations and switch(string) would at least allow programming clarity, even if no other optimization was done.

The other proposed changes I listed in the jira also have merit, though perhaps the single most important would be a provision for a common library of functions beyond what LL defines. New functions could be added on a a regular basis after vetting by the community and LL within a cc* namespace. Perhaps a cc.* namespace to make 100% certain of backwards compatability. Saijanai 07:38, 24 February 2008 (PST)

Better support for other spoken human languages

Here's a constant in a script for a message in English.

MsgAlreadyGiven = "Not found, perhaps already given out?";

Now, here's the same constant, in French and Italian.

MsgAlreadyGiven = "Pas trouve, peut-etre deja enleve?";
MsgAlreadyGiven = "Non trovato, forse gia dato?";

In French and Italian there, it's wrong, though.

It's wrong because LSL forced me to drop the accents, which creates spelling mistakes, forcing me to look illiterate in a multitude of languages. While that has a certain rakish appeal to it :} if there's another version of LSL, it really needs to be able to handle accents. I know lots of unilingual anglophone programmers will pshaw this idea, but still. Chaz Longstaff 08:25, 24 February 2008

The compiler supports accented characters, the font used by the editor doesn't show them. VWR-3857 -- Strife Onizuka 04:48, 25 February 2008 (PST)
last i checked, characters like ç and ã displayed on the script editor just fine (hell, even stuff like φ, ▅ and ░ show as expected), but when saving it would give an error (often pointing to the wrong point on the script as the source of the error), the solution I found was to use llUnEscapeURL for inputing such characters on the script code (but since it ias afunction, it won't work unles run inside an state), to figure out what is the code to an specific charater, one way would be having a script tel you the escaped version of what it hears and say to it the characters you want the escape code for, then use the returned code on yoru script--TigroSpottystripes Katsu 23:58, 25 February 2008 (PST)
I thought they had that bug fixed ~_~ -- Strife Onizuka 04:42, 26 February 2008 (PST)