• 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: Reference variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reference variables


  • Subject: Re: Reference variables
  • From: Richard 23 <email@hidden>
  • Date: Mon, 15 Jan 2001 21:39:49 -0800

>> Could someone please clarify my understanding of the low-level workings
>> of reference variables?
>>
>> 1) What exactly *is* a reference variable (as set by the 'a reference to'
>> operator) physically? Is it a set of AppleScript tokens, some sort of
>> superpointer, or what?
>
>It acts like a pointer, but with greater functionality, since a reference can
>point to a range ("words 2 thru 5" or "text from word 2 to word 5")Its like a
>LISP closure, or a call-by-name parameter in ALGOL.

But it's not a pointer or a true reference since you can't pass a
reference
to a variable to a handler unless it's global in scope. Scope shouldn't
really matter, I would think, if it were a reference or pointer in the way
I understand those terms.

Scott mentioned this but it's significant enough to repeat.

R23


  • Prev by Date: Re: Variable names on the fly?
  • Next by Date: Re: Variable names on the fly?
  • Previous by thread: Re: Reference variables
  • Next by thread: persistant state: what is best technique?
  • Index(es):
    • Date
    • Thread