Mercurial > projects > ldc
view test/typeinfo7.d @ 115:5ba6d286c941 trunk
[svn r119] Added the monitor data field that comes after the vtable pointer to all classes. Represented as a void* initialized to zero.
author | lindquist |
---|---|
date | Sun, 25 Nov 2007 03:58:55 +0100 |
parents | 2c3cd3596187 |
children | d9d5d59873d8 |
line wrap: on
line source
module typeinfo7; int func(long) { return 0; } void main() { auto ti = typeid(typeof(func)); auto s = ti.toString; printf("%.*s\n", s.length, s.ptr); assert(s == "int()"); }