Re: NSXML and invalid UTF8 characters
Re: NSXML and invalid UTF8 characters
- Subject: Re: NSXML and invalid UTF8 characters
- From: Jens Alfke <email@hidden>
- Date: Fri, 29 Jan 2010 11:40:28 -0800
On Jan 29, 2010, at 11:16 AM, Keith Blount wrote:
> A habit from my fear that the compiler will get even fussier (for instance it is these days fussier about conditional expressions).
The compiler will never complain about that. It's a basic tenet of object-oriented programming that an instance of a subclass is a perfectly valid instance of its superclass(es)*. So it's always valid to assign a subclass pointer to a superclass pointer variable (or return value).
—Jens
* Except that in C++ you can violate this, intentionally, by using private inheritance..._______________________________________________
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