Scripting/Fonctions
De DigiWiki.
(Différences entre les versions)
Ligne 1 : | Ligne 1 : | ||
- | {{ | + | {{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} |
- | {{ | + | |
+ | This category contains built-in LSL functions. | ||
+ | |||
+ | == Mutability == | ||
+ | All types in LSL are immutable (they can't be mutated by side effect), variables can only be changed by being overwritten. There is no way to indirectly modify a variable's value; the only way is through direct interaction with a storing operator (=, +=, -=, *=, /=, %=, ++, --). | ||
+ | *Built-in functions will '''never''' modify the variables used as parameters. | ||
+ | *User functions that change the values of parameters inside the function scope will not have those changes applied to the variables that supplied those parameters. {{Footnote|Function parameters are effectively passed by value, not by reference. When pass by reference is used in LSO-LSL, the reference points to a copy of the value, not to the original.}} | ||
+ | |||
+ | == Functions == | ||
+ | |||
+ | {{LSL All Functions|name|key=*}} | ||
+ | |||
+ | == Footnotes == | ||
+ | {{Footnotes}} |
Version du 23 janvier 2012 à 12:57
This category contains built-in LSL functions.
Mutability
All types in LSL are immutable (they can't be mutated by side effect), variables can only be changed by being overwritten. There is no way to indirectly modify a variable's value; the only way is through direct interaction with a storing operator (=, +=, -=, *=, /=, %=, ++, --).
- Built-in functions will never modify the variables used as parameters.
- User functions that change the values of parameters inside the function scope will not have those changes applied to the variables that supplied those parameters. Modèle:Footnote