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