Difference between revisions of "Category:LSL Functions"

From Second Life Wiki
Jump to: navigation, search
(revert)
(ฟังก์ชั่น)
 
(37 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{LSL Header}}
+
{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}
  
 
This category contains built-in LSL functions.  
 
This category contains built-in LSL functions.  
Todo:
 
#fill in 'spec' field when applicable.
 
#write 'examples' (see {{LSLGC|Needs Example}})
 
#write 'notes'
 
#write 'caveats'.
 
  
To coordinate your work, see [[LSL_Portal_To-do]]. Use [[Template:LSL_Function]] to for page entries and be sure to look at it to familiarize yourself with the features supported.
+
== Mutability ==
 +
All types in LSL are immutable (they can't be mutated by side effect), variables can only be changed by being overwritten. There is no way to indirectly modify a variable's value; the only way is through direct interaction with a storing operator (=, +=, -=, *=, /=, %=, ++, --).
 +
*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. {{Footnote|Function parameters are effectively passed by value, not by reference. When pass by reference is used in LSO-LSL, the reference points to a copy of the value, not to the original.}}
  
When the task of initially creating the pages is finished, delete the to-do list at the top.
+
== Functions==
  
There is apparently a bug in the wiki that may mess up the alphabetic order. Just editing and saving a page that is out of order is enough to put it back in order. The ordering bug rears it's ugly head when the templates used on every function page are changed (fix bugs in the templates etc).
+
{{LSL All Functions|name|key=*}}
:I have what might work as a solution to this problem but I don't want to deploy it just yet. I still don't fully understand why this bug occurs. And implementing it would cause the re-rendering of 500+ pages. --[[User:Strife Onizuka|Strife Onizuka]] 23:28, 19 April 2007 (PDT)
+
  
{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}
+
==Footnotes==
 +
{{Footnotes}}{{Anchor|PiC}}

Latest revision as of 02:24, 19 April 2016

This category contains built-in LSL functions.

Mutability

All types in LSL are immutable (they can't be mutated by side effect), variables can only be changed by being overwritten. There is no way to indirectly modify a variable's value; the only way is through direct interaction with a storing operator (=, +=, -=, *=, /=, %=, ++, --).

  • 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. [1]

Functions

Key Description
 NEW  The function was recently added.
 I  The LSO function ID for the function is not known, or it may not have one.
 D  The function has been deprecated but still works.
It is best to avoid functions marked as deprecated.
 R  The function has not only been deprecated, it has been removed.
Do not use functions marked as removed.
 U  The function has not been implemented.
Do not use functions marked as not implemented.
 B  This function is marked as broken and may not work.
 G  The function requires god-mode.
Functions marked as such cannot be used.
 RQ  This function has been requested by several users and has not been implemented.
Do not use functions marked as requested.

Footnotes

  1. ^ Function parameters are effectively passed by value, not by reference. When pass by reference is used in LSO-LSL, the reference points to a copy of the value, not to the original.

Pages in category "LSL Functions"

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

(previous 200) (next 200)

A

B

C

D

E

E cont.

F

G

G cont.

(previous 200) (next 200)