Difference between revisions of "Category:LSL Types"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
{{Multi-lang}}
{{Multi-lang}}
{{LSL Header}}
{{LSL Header}}{{LSLC|Keywords}}{{LSLC|}}
===Introduction===
===Introduction===


Line 10: Line 10:
integer myVar = 123;
integer myVar = 123;


{{LSLC|Keywords}}{{LSLC|}}
== 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.

Revision as of 19:27, 14 July 2008

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

integer myVar = 123;

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.