🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #612

Anonymous `super' class in C++

#612
From: Dag Bruck
Date: Thu, 29 Nov 1990 06:52
33 lines
1593 bytes
The idea of specifying an anonymous base class in C++ came up recently
on the net.  Basically, you would be able to write:

	struct B { virtual void foo(); };

	struct D { void foo(); };

	void D::foo()
	{
		inherited::foo();	// instead of `B::foo'
		// do some more
	}

I like the keyword `inherited' (which is used in Mac C++), but `super'
is used in e.g. SmallTalk.

I have written a proposal for X3J16, called "New keyword for C++:
inherited", document number X3J16/90-0086.  It has a fairly long
section on reasons for introducing `inherited'.  (A little teaser: one
of the advantages is that may introduce ambiguities in your program!)

People interested in my proposal can send me mail, and I will e-mail
them a copy (please indicate ASCII or PostScript).  If the interest is
overwhelming, I will post it to this group.

Best regards,

Dag Br\"uck
--
Department of Automatic Control		E-mail: dag@control.lth.se
Lund Institute of Technology
P. O. Box 118				Phone:	+46 46-108779
S-221 00 Lund, SWEDEN			Fax:    +46 46-138118
Technical Details
Message-ID: <1990Nov29.065232.5921@lth.se>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!lth.se!newsuser

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!lth.se!newsuser
From: dag@control.lth.se (Dag Bruck)
Newsgroups: comp.std.c++
Subject: Anonymous `super' class in C++
Summary: Proposal for standardization exists, copy available
Keywords: c++, super class
Message-ID: <1990Nov29.065232.5921@lth.se>
Date: 29 Nov 90 06:52:32 GMT
Sender: newsuser@lth.se (LTH network news server)
Organization: Department of Automatic Control, Lund, Sweden
Lines: 33