home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16593 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.3 KB  |  28 lines

  1. Newsgroups: comp.lang.c++
  2. From: nikki@trmphrst.demon.co.uk (Nikki Locke)
  3. Path: sparky!uunet!pipex!demon!trmphrst.demon.co.uk!nikki
  4. Subject: Re: Member function renaming proposal from the ARM
  5. Reply-To: nikki@trmphrst.demon.co.uk
  6. Distribution: world
  7. X-Mailer: cppnews $Revision: 1.20 $
  8. Organization: Trumphurst Ltd.
  9. Lines: 14
  10. Date: Thu, 19 Nov 1992 12:28:16 +0000
  11. Message-ID: <722201296snx@trmphrst.demon.co.uk>
  12. Sender: usenet@gate.demon.co.uk
  13.  
  14. In article <1992Nov17.031938.10774@fcom.cc.utah.edu> swillden@news.ccutah.edu (Shawn Willden) writes:
  15. [My suggestion for extending the "virtual function =" syntax omitted.
  16. > The standard trick of defining Derived::set(int) and Derived::set(double)
  17. > as inline forwarding functions should work without any run-time penalty
  18. > if the compiler is smart.  All it has to do is recognize what is happening
  19. > and put the addresses of the Base methods in the Derived vtable.  Given
  20. > that this is such an easy optimization I don't think we need a language
  21. > extension for it (and another bit of syntax to learn).
  22. Has anyone ever seen a compiler which does this ? 
  23. Why not ? Is it too hard, or are compiler writers just lazy ?
  24.  
  25. -- 
  26. Nikki Locke,Trumphurst Ltd.(PC and Unix consultancy) nikki@trmphrst.demon.co.uk
  27. trmphrst.demon.co.uk is NOT affiliated with ANY other sites at demon.co.uk.
  28.