> "Script mode" (actually - simple wrapper) would be better: > It could do simple parsing of script, bringing all "import" > clauses to the beginning and add some default imports > (like std.stdio). It seems that all code below imports can be > wrapped into main declaration.
My rund.d program does this. http://arsdnet.net/dcode/rund.d As you can see, it's a trivial program.