Re: "a reference to"
Re: "a reference to"
- Subject: Re: "a reference to"
- From: has <email@hidden>
- Date: Thu, 24 Jan 2008 19:24:50 +0000
On 24 Jan 2008, at 18:34, Scott Babcock wrote:
Yes, recordRef is bound to the {foo:"foo"} record, but it's not an
AppleScript 'reference' object.
Didn't say it was.
Only a 'reference' can be coerced to 'reference', and an error is
thrown if you try this on recordRef.
Yep.
Even so, the 'contents of' operator de-references recordRef into a
local copy:
You can't deference something that isn't a reference. 'contents
of' (which is a property reference, not an operator) makes a shallow
copy of the object bound to recordRef. Given that the ASLG doesn't
list a 'contents' property for either list or record types I'm
inclined to think it's an undocumented behaviour, although you'd need
to check the rest of the ASLG to be sure. As with other avoidable
AppleScript quirks, the best advice is "don't do that".
has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden