Mercurial > projects > ldc
view test/moduleinfo2.d @ 272:94ef6d63f7bb trunk
[svn r293] Fixed: object.TypeInfo_Struct implementation was incorrect.
author | lindquist |
---|---|
date | Wed, 18 Jun 2008 22:27:02 +0200 |
parents | d9d5d59873d8 |
children | 25fa34e899e9 |
line wrap: on
line source
module moduleinfo2; extern(C) int printf(char*, ...); void main() { ModuleInfo[] mi = ModuleInfo.modules(); printf("listing %u modules:\n"); foreach(m; mi) { printf(" %s\n", m.name.length, m.name.ptr); } assert(mi.length > 50); }