Re: How can you tell whether you have a reference or not?
Re: How can you tell whether you have a reference or not?
- Subject: Re: How can you tell whether you have a reference or not?
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 06 Feb 2003 17:23:16 -0800
On 2/6/03 12:06 PM, "Nathan Herring" <email@hidden> wrote:
>
If I have a local variable, how can I tell whether it's a reference to
>
something or just a value class?
>
>
e.g.
>
>
set foo to 1 -- value class
>
set bar to a reference to foo -- reference class
>
>
class of foo and class of bar both return integer.
>
>
Any way to know?
(contents of foo) = foo
--> true
(contents of bar) = bar
--> false
set isReference to not (contents of someVariable)
--
Paul Berkowitz
_______________________________________________
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.