Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

A few things I would like to know how to do

Kujila Maltz
lol
Join date: 6 Aug 2005
Posts: 444
12-03-2005 14:46
* Function Prototyping - Must all functions be defined at the start of the program?

* Switch/Case Statement - Must I use long If/Else statements for this?

* Arrays - Are they implemented? I hope so :/

* Structures/Class Style Object Architecture - I don't think these are in LSL, but if they are lemme know! :)

* Auto-complete/Code suggest - Like Visual Studio among other IDEs... does SL have a similar option?

Thanks all, I've only touched on LSL a little, and was curious about these as I've not come across them yet and couldn't find them in the Wiki. :)
Marker Dinova
I eat yellow paperclips.
Join date: 13 Sep 2004
Posts: 608
12-03-2005 15:20
I am not an expert, but from the little LSL I know, and comparing it with the little logo, basic, fortran, pascal, and visual basic I know...... I think the only statement that's true is the first. None of the other exists in LSL.
_____________________
The difference between you and me = me - you.
The difference between me and you = you - me.

add them up and we have

2The 2difference 2between 2me 2and 2you = 0

2(The difference between me and you) = 0

The difference between me and you = 0/2

The difference between me and you = 0

I never thought we were so similar :eek:
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
12-03-2005 15:21
1. There are no prototypes. All functions need to be declared before you start any of the state / event handler definitions.

2, 3, 4. No switch-case, no arrays, no user-definable types. Search for 'Mono' in the forums, that might give you some ideqas of where things might end up going.

5. A mouse hover over a completed LSL function call usually pulls up a tooltip with syntax and some basic help.
Kujila Maltz
lol
Join date: 6 Aug 2005
Posts: 444
12-03-2005 15:55
Mono? Like C# or something?

[EDIT]

Also, thanks to the both of you! :)
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
12-03-2005 21:59
It's something that'll apparently let you write in whatever language you want, and it'll compile it to SL bytecode. That's all I understand about it, I don't know any details about how it's supposed to work, or when it's expected to be out, or anything.