At 12:42 AM +0100 6/13/02, you wrote:
>----- Original Message -----
>From: "Buzz Kettles" <[EMAIL PROTECTED]>
>
>
>>  add the new prop
>>  copy the values from the old misspelled prop (use duplicate())
>>  delete the original prop & original copy of the values
>
>Actually, you should *not* use duplicate. Firstly, it will choke on anything
>that is not a list. Secondly, if you have an external pointer to that list,
>then

I'd only mentioned duplicate() because it was specified as lists of lists.
You are right, of course

>it will no longer point to the correct list.

Wouldn't that mean that they were pointing to the wrong propname?

again - sure, I agree.

>For instance:

>
>a = [ 1, 2, 3 ]
>b = [ #misspelled:a ]
>
>b[ #correct ] = b[ #misspelled ].duplicate()
>a[2] = 6
>
>put b[ #correct ]
>-- [ 1, 2, 3 ]
>
>-- Whereas
>
>b[ #correct ] = b[ #misspelled ] -- No duplicate, just copied by reference
>a[2] = 6
>-- [ 1, 6, 3 ]
>
>- Robert
>
>[To remove yourself from this list, or to change to digest mode, go 
>to http://www.penworks.com/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/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