Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Global Function Paramaters

Krista Chaffe
Registered User
Join date: 16 Jun 2007
Posts: 96
05-30-2008 10:53
Are they passed by reference or copy ?

ie can I write back to them if I pass say a list in
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
05-30-2008 10:57
They're copies. Even strings & lists..
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Krista Chaffe
Registered User
Join date: 16 Jun 2007
Posts: 96
05-30-2008 11:18
Dang it but then I guess thats usual for a function
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
05-30-2008 11:33
LSL can be painful for C/C++ people...
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
05-30-2008 14:03
From: Krista Chaffe
Dang it but then I guess thats usual for a function


That would really depend on what you consider your 'usual' language!!! :P
_____________________
I'm back......
Krista Chaffe
Registered User
Join date: 16 Jun 2007
Posts: 96
05-31-2008 20:12
Well in most languages functions return just one value, I was just hoping.

Procedure calls can usually return data via parameters called by reference. It s also faster ans you don;t have to copy the entire thing
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
06-01-2008 01:24
LSL is a toy language, don't consider it anything but...
_____________________
From Studio Dora