Re: What are the limitations of Dot Syntax?
Re: What are the limitations of Dot Syntax?
- Subject: Re: What are the limitations of Dot Syntax?
- From: Charles Srstka <email@hidden>
- Date: Sat, 6 Dec 2008 13:15:39 -0600
On Dec 5, 2008, at 10:06 PM, Bill Bumgarner wrote:
Not really. 'name' is still something that is an accessor type
thing, regardless of whether it is derived or declared via @property()
"dot abuse" refers to expressions like:
foo.retain;
bar.lockFocusIfCanDraw;
That is, expressions where you aren't really asking the object to
retrieve some value, but are more or less telling the object to do
something and return a result.
And, yes, there are grey areas.
So would something which is clearly not a property, but still returns
an object, such as:
myObj = mySet.anyObject;
or:
enumerator = myArray.objectEnumerator;
be considered kosher?
Charles
_______________________________________________
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