Re: virtual signal system ?



On Mon, 2006-11-13 at 18:03 +0100, Pierre THIERRY wrote:
> Scribit Paul Davis dies 13/11/2006 hora 08:44:
> > > I think this is worth looking into ... I am not sure how this is
> > > done by the (gnu) C++ compiler.
> > its part of the language definition.
> 
> Are you sure? I remember reading that the use of a vtable is only the
> easiest and most common way to achieve the kind of polymorphism we find
> in C++, and the only one used by C++ compilers, but that it's not in the
> C++ standard...

well, sure, the details of the implementation are compiler-specific. but
the idea that adding more virtual functions doesn't increase the size of
an instance of an object is pretty obvious, i think. that was the part i
meant by "part of the language".




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]