forward declaration (abstract functions)
Status: Inactive
Brought to you by:
robgreayer
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