Re: List Question: Can someone explain this to me?
Re: List Question: Can someone explain this to me?
- Subject: Re: List Question: Can someone explain this to me?
- From: Jon Pugh <email@hidden>
- Date: Fri, 14 Jun 2002 08:33:09 -0700
At 12:27 PM +0100 6/14/02, Nigel Garvey wrote:
>
It makes sense (and sounds easier to implement) if 'copy' *always*
>
duplicates data and creates new pointers, while 'set' only duplicates
>
pointers to existing data. It *doesn't* make sense for 'copy' to behave
>
like 'set' with simple data but then do something quite different with
>
compound data.
It's the other way around. Copy always copies data, not pointers. Set copies data sometimes and copies pointers the other times. I'm not certain of the exact rules, as I mentioned, they changed numerous times during development as Warren realized there were new cases where set should behave more like copy.
Personally, I almost always use set and seldom use copy, except when dealing with lists, as this is the place where set will normally bite you.
Jon
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.