• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSXML and invalid UTF8 characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: NSXML and invalid UTF8 characters (From: Keith Blount <email@hidden>)

  • Prev by Date: Re: Network Reachability
  • Next by Date: Indentation bug in NSOutlineView with source-list highlighting?
  • Previous by thread: Re: NSXML and invalid UTF8 characters
  • Next by thread: Re: NSXML and invalid UTF8 characters
  • Index(es):
    • Date
    • Thread