abstract function templates

Simen kjaeraas simen.kjaras at gmail.com
Sun Dec 26 17:38:09 PST 2010


Jonathan M Davis <jmdavisProg at gmx.com> wrote:

> A big problem with having template functions be virtual is the fact that  
> such
> functions don't exist until they're called, whereas a class and its  
> virtual
> function need to exist regardless of whether the functions get called -
> particularly when you bring libraries into it.

I'm very aware of that. The only possibility I see would be to build
vtables at startup (sorta also possible at link-time), and I think we
can all agree that's an uncomfortable nest of worms.

-- 
Simen


More information about the Digitalmars-d-learn mailing list