• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How can you tell whether you have a reference or not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Disable Table View
  • Next by Date: Re: Toggling Boolean values (was: iTunes -- Remove Missing Tracks?)
  • Previous by thread: How can you tell whether you have a reference or not?
  • Next by thread: Re: How can you tell whether you have a reference or not?
  • Index(es):
    • Date
    • Thread