Menu

#14 forward declaration (abstract functions)

open
nobody
None
5
2009-03-02
2009-03-02
Anonymous
No

Hi,

I really love LSL Plus. It makes scripting so much easer and more fun.

A feature idea: It would be cool if one could forward define a function in a module and provide the implementation outside of it.

$module mod();

$forward integer callback(string data);

orocess()
{
// some complex processing
integer b = callback("a");
// more complex processing
integer c = callback("b");
}

-------------------------------------

$import mod();

integer callback(string data)
{
return llGetStringLength(data);
}

Maike

Discussion


Log in to post a comment.