----- 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 it will no longer point to the correct list. 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!]

Reply via email to