🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Separate Decl of Private Member Fcn

#316
From: stt
Date: Mon, 13 Aug 1990 14:38
21 lines
1223 bytes
Re: Separate Decl of Private Member Fcn

The obvious solution to the concerns about allowing
member functions to be added after the end of the class
declaration is to require that they be private and static.
This makes them visible only to the other member functions,
and prevents "hijacking."

I have used Ada for ten years and the ability to add private functions
with visibility to private data, without disturbing the
declaration of a type is essential to the enhancement
and sane maintenance of a large system.

After all, that is why "static" functions were added to the
original C.  It would be a shame if private static member functions in C++
couldn't have the same limited per-file visibility they have in C.

S. Tucker Taft
Intermetrics, Inc.
Cambridge, MA  02138
Technical Details
Message-ID: <259400002@inmet>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!rpi!bu.edu!inmet!stt
References: <259400001@inmet>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!rpi!bu.edu!inmet!stt
From: stt@inmet.inmet.com
Newsgroups: comp.std.c++
Subject: Re: Separate Decl of Private Member Fcn
Message-ID: <259400002@inmet>
Date: 13 Aug 90 14:38:00 GMT
References: <259400001@inmet>
Lines: 21
Nf-ID: #R:inmet:259400001:inmet:259400002:000:775
Nf-From: inmet.inmet.com!stt    Aug 13 10:38:00 1990