|LSL Portal||Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials|
A data type is a definition of the type or format of data.
An integer for example, defines that the variable which will hold this kind (or 'type') of data shall contain only integers, which for 32-bit are whole number values in the range ofto .
<lsl>integer myVar = 123;</lsl>
LSL as a language uses pass-by-value for all types. When a value (it can be the value in a variable) is passed as a parameter to a function, that function is provided with it's own unique copy of the value. So if in the course of executing the function, it modifies the parameter, that modification only changes the functions copy of the value, it does not effect or change the original (or other copies).
- 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.
The VMs that run compiled LSL preserve this despite using reference types for several of the types.
This category has the following 8 subcategories, out of 8 total.