THX

----------
> Od: Daniel Plaenitz <[EMAIL PROTECTED]>
> Do: [EMAIL PROTECTED]; LINGO <[EMAIL PROTECTED]>
> Temat: Re: <lingo-l> Lingo is stupid. BUG
> Data: 1 listopada 2000 12:47
> 
> At 12:40 01.11.2000 +0100, Szymon Drejewicz wrote:
> 
> >on myFunctionForLists v
> >   v[1] = v[1]  + 1
> >   v[2] = v[2]  + 1
> >end
> >
> >let's see how it's working (in Message Window):
> >---------------------------------
> >w = [1,1]
> >myFunctionForLists(w)
> >put w
> >-- [2,2]
> >---------------------------------
> >WHY !? SHOULD BE
> >-- [1,1]
> >
> >Can you explain that?
> 
> lists are passed as reference, not as value.
> 
> (Don't worry, everyone fell into this trap once!)
> 
> best regards,
> daniel
> 
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
> email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to