Difference between revisions of "LSL 101/LSL in Focus: Types"

From Second Life Wiki
Jump to navigation Jump to search
(New page: {{NavNextPrev|prefix=LSL in Focus: |prev=|topic=Language Topics in Focus|next=Integers}} __TOC__ =Summary of Types= In a scripting language, '''types''' are a way of categorizing the val...)
 
Line 4: Line 4:


=Summary of Types=
=Summary of Types=
In a scripting language, '''types''' are a way of categorizing the values that the language can manipulate.  In LSL, there are 7 different types.
In a scripting language, '''types''' are a way of categorizing the values that the language can manipulate.  In LSL, there are seven different types.  Each of these types has its own representation and its own set of operations and/or built-in functions for manipulating values of that type.  Here's a quick overview of each type and how it is used in LSL.


* [[LSL 101/LSL in Focus:Integers|Integers]]
==[[LSL 101/LSL in Focus:Integers|Integers]]==
* [[LSL 101/LSL in Focus: Floats|Floats]]
* [[LSL 101/LSL in Focus: Strings|Strings]]
* [[LSL 101/LSL in Focus: Keys|Keys]]
* [[LSL 101/LSL in Focus: Lists|Lists]]
* [[LSL 101/LSL in Focus: Vectors|Vectors]]
* [[LSL 101/LSL in Focus: Rotations|Rotations]]


Each of these types has its own representation and its own set of operations and/or built-in functions for manipulating values of that typeHere's a quick overview of how each types is used in LSL.
Integers are the basic "whole" numbers (positive, negative and zero) of mathematics.  They are a very fundamental type in most computer languagesIn LSL, they are used in four distinct ways.


==Integers==
* [[LSL 101/LSL in Focus:Integers#Signed Integers|Signed Integers]]
* Truth Values (Booleans)
* Enumerations
* Bit Vectors


==Floats==
==[[LSL 101/LSL in Focus: Floats|Floats]]==


==Strings==
==[[LSL 101/LSL in Focus: Strings|Strings]]==


==Keys==
==[[LSL 101/LSL in Focus: Keys|Keys]]==


==Lists==
==[[LSL 101/LSL in Focus: Lists|Lists]]==


==Vectors==
==[[LSL 101/LSL in Focus: Vectors|Vectors]]==


==Rotations==
==[[LSL 101/LSL in Focus: Rotations|Rotations]]==

Revision as of 15:27, 1 June 2009

↑̲  Language Topics in Focus  ̲↑ Integers →

Summary of Types

In a scripting language, types are a way of categorizing the values that the language can manipulate. In LSL, there are seven different types. Each of these types has its own representation and its own set of operations and/or built-in functions for manipulating values of that type. Here's a quick overview of each type and how it is used in LSL.

Integers

Integers are the basic "whole" numbers (positive, negative and zero) of mathematics. They are a very fundamental type in most computer languages. In LSL, they are used in four distinct ways.

Floats

Strings

Keys

Lists

Vectors

Rotations