d future or plans for d3
Vladimir Panteleev
vladimir at thecybershadow.net
Tue Dec 20 03:30:41 PST 2011
On Tuesday, 20 December 2011 at 11:17:32 UTC, Froglegs wrote:
>
>> The class will still have a vptr. The vtable will contain only
>> the type info.
>
> No way to disable type info(like in most C++ compilers you can
> disable RTTI)? I get that GC might want it, but if I disable GC
> why would I want type info?
It's used for casts and other language/library features depending
on typeid.
There's also the standard Object virtual methods: toString (used
e.g. when passing objects to writeln), toHash, opEquals, opCmp
(used in associative arrays, array sorting).
More information about the Digitalmars-d
mailing list