Category:LSL Types/zh-Hant

From Second Life Wiki
< Category:LSL Types
Revision as of 06:26, 17 February 2009 by Wenli Woodget (talk | contribs) (New page: {{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|}} ===Introduction=== A data type is a definition of the type or format of data. An integer for example, defines that the variable which wi...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

This category currently contains no pages or media.