Re: warning: local declaration hides instance variable
Re: warning: local declaration hides instance variable
- Subject: Re: warning: local declaration hides instance variable
- From: Wincent Colaiuta <email@hidden>
- Date: Mon, 3 Sep 2007 21:30:55 +0200
El 3/9/2007, a las 20:52, Laurence Harris escribió:
An even better solution would be to rename your instance variables
with a standard naming convention that clearly identifies them as
instance variables. Since they're also referred to as member
variables, a lot of people prefix their names with an "m":
Depends on what you mean by "a lot"; if you mean "multiple people"
then you're right. But "some" would probably be a less misleading
choice because this pattern is most definitely only in minority use
in the Objective-C world (where they are called instance variables,
not member variables, in any case).
Seems of dubious value to embed this information in your variable
names when the compiler is (obviously) capable of warning about
possible ambiguities, and the predominant use of accessors means that
direct instance variable manipulation is a fairly rare thing anyway
(think Key-Value Coding, and Objective-C 2.0 properties).
Cheers,
Wincent
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden