diff test/moduleinfo2.d @ 117:56a21f3e5d3e trunk

[svn r121] Finished ModuleInfo implementation. Static ctors/dtors now work according to spec. Changed class vtable types slightly in some cases. Overridden functions now always take the the type of the first class declaring the method as this parameter. This helps when using headers (w. implementation somewhere else)
author lindquist
date Mon, 26 Nov 2007 04:49:23 +0100
parents
children d9d5d59873d8
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/moduleinfo2.d	Mon Nov 26 04:49:23 2007 +0100
@@ -0,0 +1,12 @@
+module moduleinfo2;
+import std.stdio;
+void main()
+{
+    ModuleInfo[] mi = ModuleInfo.modules();
+    writefln("listing ",mi.length," modules");
+    foreach(m; mi)
+    {
+        writefln("  ",m.name);
+    }
+    assert(mi.length > 50);
+}