On 9 Jan 2009, at 16:13, Andy Lee wrote:
I haven't checked, but I suspect the compiler chooses the right thing, since this is only a warning. Maybe someone knows a way to disable the warning? In Java, I wouldn't be surprised if there were a way to enable a similar warning.
The compiler will chose the name binding from the inner-most scope, so in this case, label will refer to the argument. In practice though, it's a bad idea to name the two the same – I tend to use initPropertyName in my init functions, and newPropertyName in my setters (if I'm using @dynamic). But then this is coming from the point of view of someone who uses -Wall -Werror.
Bob_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com