Difference between revisions of "Talk:Getting started with LSL"

From Second Life Wiki
Jump to navigation Jump to search
m (Talk:Getting Started In LSL moved to Help talk:Getting started with LSL: help guides should be in the help namespace)
(Code sample doesn't match what the article is saying)
Line 2: Line 2:


Moved the page, it's all the rage to have spaces in names. As to the capitalization of the name thats not my can of worms. [[User:Strife Onizuka|Strife Onizuka]] 09:46, 1 February 2007 (PST)
Moved the page, it's all the rage to have spaces in names. As to the capitalization of the name thats not my can of worms. [[User:Strife Onizuka|Strife Onizuka]] 09:46, 1 February 2007 (PST)
== Code sample doesn't match what the article is saying ==
A Closer Look
Lets take a look at the default code.
default
{
    state_entry()
    {
    llSay(0, "Hello, Avatar!");
    }
    touch_start(integer total_number)
    {
    llSay(0, "Touched.");
    }
}
The code above contains 2 comments, 1 state, 2 events and 2 functions. Lets look at them individually.
Where's the two comments?

Revision as of 11:12, 15 August 2007

Is there a reason the code isn't indented? I badly whitespaced code makes it hard to sit still; like walking into someones house and finding a picture hanging crooked on the wall. Maybe whitespace should be mentioned somewhere in the article too... Strife Onizuka 09:41, 1 February 2007 (PST)

Moved the page, it's all the rage to have spaces in names. As to the capitalization of the name thats not my can of worms. Strife Onizuka 09:46, 1 February 2007 (PST)

Code sample doesn't match what the article is saying

A Closer Look

Lets take a look at the default code.

default {

    state_entry()
    {
    llSay(0, "Hello, Avatar!");
    }
    touch_start(integer total_number)
    {
    llSay(0, "Touched.");
    }

}

The code above contains 2 comments, 1 state, 2 events and 2 functions. Lets look at them individually.


Where's the two comments?