Difference between revisions of "Category:LSL Types"

From Second Life Wiki
Jump to: navigation, search
m
m (links)
Line 4: Line 4:
 
A [[data]] type is a definition of the type or format of data.
 
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 of  0x00000000 to 0xFFFFFFFF.
+
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 of  {{LSL Hex|0x00000000}} to {{LSL Hex|0xFFFFFFFF}}.
  
 
===Example===
 
===Example===
integer myVar = 123;
+
<lsl>integer myVar = 123;</lsl>
  
 
== Mutability ==
 
== Mutability ==
All types in LSL are immutable (they can't be mutated by side effect), variables can only be changed by being overwritten.
+
All types in [[LSL]] are immutable (they can't be mutated by side effect), [[LSL Variables|variables]] can only be changed by being overwritten.
*Build in functions will never modify the variables used as parameters.
+
*[[:Category:LSL Functions|Build 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.
 
*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.

Revision as of 18:11, 21 March 2010

Introduction

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 of 0x00000000 to 0xFFFFFFFF.

Example

<lsl>integer myVar = 123;</lsl>

Mutability

All types in LSL are immutable (they can't be mutated by side effect), variables can only be changed by being overwritten.

  • Build 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.

Subcategories

This category has the following 8 subcategories, out of 8 total.

Pages in category "LSL Types"

The following 7 pages are in this category, out of 7 total.