home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / std / cplus / 1162 < prev    next >
Encoding:
Text File  |  1992-09-11  |  856 b   |  21 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!wupost!csus.edu!netcom.com!feustel
  3. From: feustel@netcom.com (David Feustel)
  4. Subject: How About a Pragma Specifying All Functions Virtual?
  5. Message-ID: <#7vnafk.feustel@netcom.com>
  6. Date: Sat, 12 Sep 92 00:09:34 GMT
  7. Organization: DAFCO: OS/2 Software Support & Consulting
  8. Lines: 11
  9.  
  10. Coplien's book "Advanced C++" makes the point that very little overhead
  11. would be incurred in most programe even if all functions were declared
  12. virtual and that some programs might even run faster than equivalent C
  13. programs using switch constructs to achieve the same effects. Why not
  14. define a pragma that would make all class functions virtual by
  15. default?
  16. -- 
  17. Dave Feustel N9MYI <feustel@netcom.com>
  18.  
  19. RE Drug Warriors who enjoy making a "good" bust: I'm sure the Salem
  20. Witch Hunters enjoyed their law enforcement achievements too.
  21.