Re: Variable Ponderance
Re: Variable Ponderance
- Subject: Re: Variable Ponderance
- From: Bill Briggs <email@hidden>
- Date: Fri, 1 Oct 2004 13:28:43 -0300
At 11:14 AM -0400 10/1/04, email@hidden wrote:
The way I like to say this (I think it's equivalent) is that some
objects (anything other than a number IIRC) are never stored in
variables -- only a reference (pointer if you prefer, but reference
is more general) is stored in the variable binding.
So when you pass the variable, you are passing just a reference to
the object, not the object itself.
Correct. That's the way it would be in C, for example. And if you
wanted to sort a list in a subroutine and still preserve the original
list in the original order, in C you would have to purposely make
(sic*) a duplicate of the list for the subroutine to sort. Passing
the pointer is enough if you don't care to preserve the list in
original order.
- web
* split infinitive intentional
(I was going to write a similar response to yours, but got distracted.)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden