view tests/mini/moduleinfo2.d @ 1223:5f340a6dc749

Fix nested functions. My last patch was a little over-zealous in passing `undef`, it always passed `undef` to inner functions expecting a single context frame.
author Frits van Bommel <fvbommel wxs.nl>
date Fri, 17 Apr 2009 13:50:01 +0200
parents 1bb99290e03a
children
line wrap: on
line source

module moduleinfo2;

extern(C) int printf(char*, ...);

void main()
{
    printf("listing modules:\n");
    foreach(m; ModuleInfo)
    {
        printf("  %.*s\n", m.name.length, m.name.ptr);
    }
}