• 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: Is this possible without multiple inheritance?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is this possible without multiple inheritance?


  • Subject: Re: Is this possible without multiple inheritance?
  • From: Jeff Harrell <email@hidden>
  • Date: Fri, 4 Jul 2003 09:37:19 -0500

On Friday, July 4, 2003, at 09:23 AM, publiclook wrote:

Anything can be done without multiple inheritance. Anything can be done without inheritance at all.

Not to pick nits, but that's not completely true. Say for example there's a library function that takes an NSSet pointer as an argument. You won't be able to pass anything but an NSSet or an instance of a subclass of an NSSet to that function; the compiler won't let you.

That's a totally contrived example, of course, but subclassing both NSSet and NSString seems pretty contrived, too, in the absence of any more detailed information.

I'm not saying you're wrong; I'm just saying we don't know anything about what Kyle really needs to do, so it's entirely possible that he's dealing with a situation that's so unusual that inheritance might really be what he needs.

I second your call for more information. ;-)

--
email@hidden
http://homepage.mac.com/jharrell
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Is this possible without multiple inheritance?
      • From: publiclook <email@hidden>
References: 
 >Re: Is this possible without multiple inheritance? (From: publiclook <email@hidden>)

  • Prev by Date: arithmetic in Cocoa
  • Next by Date: Re: toolbars in Cocoa
  • Previous by thread: Re: Is this possible without multiple inheritance?
  • Next by thread: Re: Is this possible without multiple inheritance?
  • Index(es):
    • Date
    • Thread