Reuse of variables referencing const objects

bearophile bearophileHUGS at lycos.com
Fri Mar 6 15:04:38 PST 2009


Sergey Kovrov:
> I guess there is a data member for allocated buffer size as well...

Nope, this isn't vector of C++. It's a long story (caused to allow the slicing). The result is that the append is very slow.


> Objects may be viewed as a structure too. There are context pointer 
> virtual function table and maybe something else implementation-specific.

Objects are managed by a reference (even in a transparent way, when you use scope and the compiler accepts it).

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list