home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!darwin.sura.net!mips!apple!apple!taligent!cep
- From: cep@taligent.com (Christophe Pettus)
- Newsgroups: comp.lang.c++
- Subject: Re: inlining a virtual function.
- Keywords: inline virtual
- Message-ID: <Brv062.9MC@taligent.com>
- Date: 23 Jul 92 20:42:02 GMT
- References: <1992Jul23.171751.10146@Warren.MENTORG.COM>
- Sender: usenet@taligent.com (More Bytes Than You Can Read)
- Organization: Taligent, a little subsidiary of two really big companies.
- Lines: 12
-
- In article <1992Jul23.171751.10146@Warren.MENTORG.COM> sharma@euler.Warren.MENTORG.COM (Sharma Kunapalli) writes:
- >My question is why CANT we inline a virtual function?
-
- You can. What it means is that the compiler should use the inline
- expansion if it class of the object can be determined at compile time,
- or a virtual function call if it cannot (if you are using a pointer or
- reference). It sounds like the implementation has not yet caught up to
- the ARM.
- --
- -- Christophe
-
- "Be calm. Look cute."
-