🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Q: pure virtual destructors

#4115
From: Casey Muratori
Date: Fri, 19 Apr 1996 14:43
28 lines
1827 bytes
Chris Page wrote:
> 
> In article <4l1bmi$1li@netlab.cs.rpi.edu>, sachs@fnal.fnal.gov wrote:
> 
> > Personally, I consider virtual destructors to be one of the blemishes
> > of the C++ language. There should be a better way to make a class
> > (with no other pure virtual functions) abstract.
> 
> How about an "abstract" keyword that you can place before "class"?

Hmmm.  If the class has no pure-virtual functions, why would you want
to make it "abstract"?  If all you want to do is prevent someone from
instantiating an object of its type, simply make the constructor private,
no?

- Casey

-- 
"Fear can hold you prisoner.  Hope can set you free."




[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
Technical Details
Message-ID: <3176D10D.2B4C@netcom.com>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
References: <4kere7$qmm@netlab.cs.rpi.edu> <4kguil$592@netlab.cs.rpi.edu> <4l0gut$r8q@netlab.cs.rpi.edu> <4l1bmi$1li@netlab.cs.rpi.edu> <4l4v5s$eke@netlab.cs.rpi.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
From: Casey Muratori <cmu@netcom.com>
Newsgroups: comp.std.c++
Subject: Re: Q: pure virtual destructors
Date: 19 Apr 1996 14:43:39 GMT
Organization: Northwest Link
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <3176D10D.2B4C@netcom.com>
References: <4kere7$qmm@netlab.cs.rpi.edu> <4kguil$592@netlab.cs.rpi.edu> <4l0gut$r8q@netlab.cs.rpi.edu> <4l1bmi$1li@netlab.cs.rpi.edu> <4l4v5s$eke@netlab.cs.rpi.edu>
NNTP-Posting-Host: taumet.eng.sun.com
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Nntp-Posting-Host: port45.annex3.nwlink.com
X-Mailer: Mozilla 2.0 (Win95; I)
X-Lines: 21
Content-Length: 654
Originator: clamage@taumet