As you know, these days, we are allowed to declare an instance variable in curly braces in the @implementation section rather than the @interface section. Well, then:
* Suppose two classes, MyClass and its subclass MyClass2. * Suppose MyClass publicly declares an instance variable "thing". I observe that if I try to redeclare "thing" (say, as a different data type) in MyClass2's @interface section, the compiler stops me, but it seems to be perfectly happy if I redeclare "thing" in MyClass2's @implementation section. Am I reading this right? It's permitted to override an inherited instance variable, but only if you do so privately? m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 6! http://shop.oreilly.com/product/0636920029717.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html TidBITS, Mac news and reviews since 1990, http://www.tidbits.com _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com