Microsoft Specific C++ keyword "__super"
Joe Buck
Joe.Buck@synopsys.COM
Wed Aug 25 23:37:00 GMT 2004
On Wed, Aug 25, 2004 at 06:09:28PM -0400, Phil Edwards wrote:
> On Wed, Aug 25, 2004 at 07:14:53PM +0100, Richard E Collins wrote:
> >
> > I'll have a think, I may resort to a macro plan I had before I found the
> > '__super' keyword. I do think its an omission of the C++ spec.
>
> You may or may not know that it was proposed and rejected. They were
> reluctant to use up any more keywords, even from the implementation
> namespace, when the same result can be had with a little more coding:
>
> struct Derived1
> : public Some_Complicated_Base_Probably_Involving_Templates
> {
> typedef Some_Complicated_Base_Probably_Involving_Templates parent;
> ....
> };
This works for single inheritance; there does not seem to be a way to
duplicate the functionality of __super in the MI case.
More information about the Gcc
mailing list