Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

LSL Includes

Leena Khan
Lasting Impressionist
Join date: 21 Apr 2004
Posts: 200
08-08-2004 18:20
Couldnt find it int he forum, but it would be great if you could do includes in an LSL script.. it would make some parts of SL scripting immensely easier.

Thanks :)
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
08-08-2004 23:21
yes library scripts and includes would be great

in the mean time take a look at this:
/54/cd/18987/1.html


I support this feature request if it isn't already obvious.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
CrystalShard Foo
1+1=10
Join date: 6 Feb 2004
Posts: 682
08-09-2004 10:57
Headers please!

Totaly supporting this concept.
Grim Lupis
Dark Wolf
Join date: 11 Jul 2003
Posts: 762
Script Libraries
08-09-2004 11:12
My preferred feature, which has been requested several times in the past year, would be script libraries.

A script library being a script with no states, with functions/methods that can be called sychronously from another script and/or asynchronously from another script (without having to use link messaging and message parsing.)

The asynchronous version can sort of be handled currently through link messaging by using either the num or id values to match up query/response.

But synchronous calls to a script library would be fantastic, ESPECIALLY if the script library can have "global" variables even though it doesn't have state.

The benefit of the library method over the include method is that it saves stack space because the logic doesn't end up being compiled into the script, just the RPC call.
_____________________
Grim

"God only made a few perfect heads, the rest of them he put hair on." -- Unknown
Hank Ramos
Lifetime Scripter
Join date: 15 Nov 2003
Posts: 2,328
08-09-2004 11:28
Constants should be higher up on the list. Using variables in place of constants is a total waste of precious memory.
_____________________