• 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: Subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subclass


  • Subject: Re: Subclass
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Sun, 15 Jun 2003 13:30:59 +0100

On Saturday, June 14, 2003, at 03:40 pm, Marco Scheurer wrote:

On Saturday, June 14, 2003, at 10:22 AM, Sailor Quasar wrote:

1. As noted, enforcement of pure virtual base classes.

The enforcement looks like on paper, but is useless in practice, as this is never a cause of problems. And as described above, it *can* be enforced: at runtime instead of compile time, just like for dynamic typing. This is Objective C.

It is interesting to note that an extension was proposed to C++ to allow it to deal with the problem in a more ObjC-like way (the "signature" extension), which lets you pass any class the implements the required interface (rather than requiring the class to have inherited from your virtual base). G++ even had support for it for a while, although I believe it's been (or is being) removed.

Kind Regards,

Alastair.
_______________________________________________
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.

References: 
 >Re: Subclass (From: Marco Scheurer <email@hidden>)

  • Prev by Date: Re: [ANN] NSTableView Assistant
  • Next by Date: Re: NSMovieView: Get frame counter
  • Previous by thread: Re: Subclass
  • Next by thread: Re: Subclass
  • Index(es):
    • Date
    • Thread