From -7367242089493260446
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,4212afc6042eed47,start
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1992-09-11 10:50:24 PST
Newsgroups: comp.std.c++
Path: sparky!uunet!wupost!csus.edu!netcom.com!feustel
From: feustel@netcom.com (David Feustel)
Subject: How About a Pragma Specifying All Functions Virtual?
Message-ID: <#7vnafk.feustel@netcom.com>
Date: Sat, 12 Sep 92 00:09:34 GMT
Organization: DAFCO: OS/2 Software Support & Consulting
Lines: 11

Coplien's book "Advanced C++" makes the point that very little overhead
would be incurred in most programe even if all functions were declared
virtual and that some programs might even run faster than equivalent C
programs using switch constructs to achieve the same effects. Why not
define a pragma that would make all class functions virtual by
default?
-- 
Dave Feustel N9MYI <feustel@netcom.com>
 
RE Drug Warriors who enjoy making a "good" bust: I'm sure the Salem
Witch Hunters enjoyed their law enforcement achievements too.


