Re: Dynamic menu building
Re: Dynamic menu building
- Subject: Re: Dynamic menu building
- From: Cameron Hayne <email@hidden>
- Date: Fri, 15 Aug 2003 17:33:03 -0400
On 8/15/03 4:10 PM, "Chris Hanson" <email@hidden> wrote:
>
I think the key point is that usually a variable is just a reference to
>
an object. A variable isn't the object itself.
>
>
So when we write
>
>
NSString *myString = @"foo";
>
>
we may use shorthand and say "myString is 'foo'" but really what we
>
mean is "the variable myString currently refers to an NSString instance
>
with the value 'foo'."
Here's what Larry Wall et al say about this issue in "Programming Perl":
"Technically, an object isn't the reference proper - it's really the
referent that the reference points at. This distinction is frequently
blurred by Perl programmers, however, and since we feel it's a lovely
metonymy, we will perpetuate the usage here when it suits us. (Footnote: We
prefer linguistic vigor over mathematical rigor. Either you will agree or
you won't.)"
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.