Re: pointers in objective-c?
Re: pointers in objective-c?
- Subject: Re: pointers in objective-c?
- From: Keary Suska <email@hidden>
- Date: Sat, 02 Aug 2008 14:53:55 -0600
- Thread-topic: pointers in objective-c?
8/2/08 1:09 AM, also sprach email@hidden:
> This is important for encapsulation. Every change of an object made
> through a pointer will change the object for every other user of this
> object, who refers using a different pointer.
>
> Person* person =
> Person* person2 = person; // two pointers to still *the one and only*
> object
This statement could be misleading, if only for semantic reasons. The
pointers in this example *are* the same, i.e. the address to which each
variable points (also the variable's value) is the same.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden