🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c++
Article #42

Re: the C++ scope operator

#42
From: keith gorlen
Date: Fri, 28 Feb 1986 17:32
23 lines
1418 bytes
>must be specified.  The name of the parent (base) class is
>available to the compiler, but the programmer must state it
>explicitly.  This seems unmodular.  (Granted, it can't

I agree.  I've been hacking around this by using #define BASE and
#define THIS as identifiers for the base class and this class,
respectively.  When I want to refer to a specific class, I use class::
and when I want to refer to the base class I use BASE::.

>(Multiple inheritance anyone?  Anybody thinking about it besides me?
>That's a subject for another posting.)

Bye-bye efficiency -- not to mention comprehensibility!  It's not
worth it!  Maybe in a special dialect called C++Flavors.
-- 
---
	Keith Gorlen
	Computer Systems Laboratory
	Division of Computer Research and Technology
	National Institutes of Health
	Bethesda, MD 20892
	phone:	(301) 496-5363
	uucp:	{decvax!}seismo!elsie!cecil!keith
Technical Details
Message-ID: <54@cecil.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!genrad!panda!talcott!harvard!seismo!elsie!cecil!keith
References: <4438@think.ARPA>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!genrad!panda!talcott!harvard!seismo!elsie!cecil!keith
From: keith@cecil.UUCP (keith gorlen)
Newsgroups: net.lang.c++
Subject: Re: the C++ scope operator
Message-ID: <54@cecil.UUCP>
Date: Fri, 28-Feb-86 12:32:52 EST
Article-I.D.: cecil.54
Posted: Fri Feb 28 12:32:52 1986
Date-Received: Sat, 1-Mar-86 23:42:52 EST
References: <4438@think.ARPA>
Organization: NIH-CSL, Bethesda, MD
Lines: 23