Get class size of object

Adam D. Ruppe destructionator at gmail.com
Sun Aug 11 13:03:25 PDT 2013


On Sunday, 11 August 2013 at 19:58:26 UTC, Adam D. Ruppe wrote:
> Oh, I see it now. I think typeid(interface) gives a different 
> set of info.

Thinking about it a bit more, this makes sense because an 
interface is not necessarily an Object - it might also be a C++ 
class, or a COM object, or maybe even a slice into another vtbl 
if an Object implements multiple interfaces (not completely sure 
about the latter, I'd have to read some source, but it seems 
logical to me).


More information about the Digitalmars-d-learn mailing list