use duplicate()
newGoodsList = duplicate(marketGoodsList)

On Thursday, June 20, 2002, at 02:08  PM, eric terry wrote:

> Is there a way to make a copy of a property list so
> that modification to either are separate? I've tried
> to do this.
>
> marketGoodsList = [:]
>
> marketGoodsList[#a] = ["Grain", 15]
> marketGoodsList[#b] = ["Seeds", 50]
>
> newGoodsList = marketGoodsList
>
> Anytime I change the original the copy is updated as
> well. Any thoughts?
>
> Thanks,
>
> Eric Terry
> www.80s.com
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> [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