classInstanceSize and vtable

Etienne Cimon via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Oct 23 17:21:52 PDT 2014


On 2014-10-23 20:12, bearophile wrote:
> In D all class instances contain a pointer to the class and a monitor
> pointer. The table is used for run-time reflection, and for standard
> virtual methods like toString, etc.
>
> Bye,
> bearophile

So what's the point of making a class or methods final? Does it only 
free some space and allow inline to take place?


More information about the Digitalmars-d-learn mailing list