Jump to content
Sign in to follow this  
dakun Flux

Multi-dimensional array/list [LSL]

Recommended Posts

I've got 2 questions. Is there any particular reason why multi-dim arrays havnt been implemented? Are there any plans to implement this at all? even 2d array functionality would be appreciated.

Share this post


Link to post
Share on other sites

Use strided lists instead. More or less solves the issue.

No idea why multidimensional arrays don't exist... but just think of it as "It's LSL, not a real programming language."

Share this post


Link to post
Share on other sites

Arrays are not planned for the near future.

The reason they have been omitted is because the original LSL concept at the time of creation was for a very abbrevated tool made for perormance with simple scripting tasks. As SL has grown it has out grown LSL. However, replacing it would break tons of existing content and that is absolutely not going to happen.

Mono is a step toward a better language. Lots of foundation stuff changed. If I understand correctly it is capable of arrays, but they are not implemented in this incarnation to remain backward compatible with LSL. 

If you want to know the original thinking for no arrays, read through the minutes of the Content and Scripting User Group. Its lots of reading but lots of history and the reasons why SL is like it is are spread through the meetings' transcripts. You could attent a meeting and if they finish the agenda and have time left you could ask a Linden.

Many things remain the way they are because it takes too much effort to change things without breaking existing content. But, they are slowly working their way toward better systems and better scripting languages.

 

Share this post


Link to post
Share on other sites

I wonder if there would be a potential solution in a way that allows old content to use old code, and new content the choice of using new features. I understand mono seems to work like this but I mean a Fuller implementation, maybe structs or object orientated looping since in sl, there's a huge need for looping through content.

 

I don't mean to ramble, you're explaination is just what I was looking for, but from a lsl programer standpoint, these are what I'm often found wishing for

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...