Why not use the address of the TypeInfo symbol as TypeInfo.toHash()?

Yuxuan Shui via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 3 16:29:27 PST 2016


After linking each _DxxTypeInfo_yyyy__initZ symbol should have a 
unique address, so why are we using hash of type name as 
TypeInfo.toHash()?

I don't think this has anything to do with compacting GC. Is 
there something I'm missing?


More information about the Digitalmars-d mailing list