Unofficial LSL Reference

[[language:start]]


Unofficial LSL reference

User Tools

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

Forgotten your password? Get a new one: Set new password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

language:start [2018-10-11 10:01 SLT]
sei Add whitespace information, example minimal script
language:start [2018-10-11 10:08 SLT] (current)
sei words -> keywords
Line 23: Line 23:
 </​code>​ </​code>​
  
-which has a $kw[default] state containing a $ev[timer] event, which will do nothing because the script lacks the code necessary to trigger it.+which has a $kw[default] state containing a $ev[timer] event, which will do nothing because the script lacks the code necessary to trigger it. So, this script does nothing at all.
  
 Spaces and newlines between words or symbols can be used at will, with some exceptions. For example, the above minimalistic,​ do-nothing script can be rewritten in a more readable way, as follows: Spaces and newlines between words or symbols can be used at will, with some exceptions. For example, the above minimalistic,​ do-nothing script can be rewritten in a more readable way, as follows:
Line 58: Line 58:
   * <wrap important>​$lkw[print]</​wrap>:​ Obsolete debug message printing method that does nothing. Do not use; use $lfn[llOwnerSay] or similar instead.   * <wrap important>​$lkw[print]</​wrap>:​ Obsolete debug message printing method that does nothing. Do not use; use $lfn[llOwnerSay] or similar instead.
  
-In addition to all these, all [[/​types/​]],​ [[/​events/​]] and [[/​constants/​]] are also reserved ​words, meaning you can't use them as names for your own variables, labels, states, parameters or functions. The library [[/​functions/​]] are not reserved words (you can't define a function with a name of a library function, because they are in the global namespace, but you //can// use the same name for your own variables or parameters — not that you would want to, though).+In addition to all these, all [[/​types/​]],​ [[/​events/​]] and [[/​constants/​]] are also reserved ​keywords, meaning you can't use them as names for your own variables, labels, states, parameters or functions. The library [[/​functions/​]] are not reserved words (you can't define a function with a name of a library function, because they are in the global namespace, but you //can// use the same name for your own variables or parameters — not that you would want to, though).
  
 See also a list of the $lkw[symbols] allowed. ​ See also a list of the $lkw[symbols] allowed. ​