Re: Subclass
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>) |