[beginner] Why nothing is printed to stdout ?

Jesse Phillips jessekphillips+d at gmail.com
Sun Oct 30 10:30:22 PDT 2011


On Sun, 30 Oct 2011 10:00:21 +0000, Frédéric Galusik wrote:

> Hi,
> 
> Can someone give me a clue on why nothing is printed to stdout ?
> 
> I wish a list of files with their size.
>  
> code:
> //
> import std.stdio;
> import std.file;
> 
> void main(string[] args)
> {
>     foreach (DirEntry e; dirEntries(".", SpanMode.shallow))
>     {
>         writeln(e.name, "\t", e.size);
>     }
> }
> //
> Build with (dmd2):
> dmd -w test.d

works for me, dmd 2.054 linux.


More information about the Digitalmars-d-learn mailing list