José Fonseca <[EMAIL PROTECTED]> writes:

| On Mon, Mar 10, 2003 at 11:59:05PM +0000, Keith Whitwell wrote:
| > 
| > Unless C++ can figure out at compile time *exactly* which class is being 
| > invoked, I think...  It's hard to know.
| 
| It can, with templates.

Even with no templates, current C++ compilers can detect that in case
the function is called through actual objcets (i.e. the dynamic type
equals the static type). GCC at least does that.

One compiler (KIA's) even used to do more with virtual calls through
pointers. 

-- Gaby


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to