Difference between revisions of "LSL Function ID"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
Function ID refers to the internal index for the function in the function table.
Function ID refers to the internal index for the function in the function table.


See: linden\indra\lscript\lscript_library\lscript_library.cpp
This number is of some interest if you are writing an LSL-LSO (de)compiler; or an LSO VM (or just trying to read LSO with a hex editor). Once assigned they never change as that would break every existing script, new functions are added onto the end of the table.
 
This may become a non sequitur when the VM & bytecode move over to Mono.
 
See the initialization in: linden\indra\lscript\lscript_library\lscript_library.cpp

Revision as of 19:44, 31 January 2007

Function ID refers to the internal index for the function in the function table.

This number is of some interest if you are writing an LSL-LSO (de)compiler; or an LSO VM (or just trying to read LSO with a hex editor). Once assigned they never change as that would break every existing script, new functions are added onto the end of the table.

This may become a non sequitur when the VM & bytecode move over to Mono.

See the initialization in: linden\indra\lscript\lscript_library\lscript_library.cpp