The D Scripting Language
Alexander Malakhov
anm at programmer.net
Thu Nov 11 05:50:42 PST 2010
>>>>
>>>> Perhaps a module std.scripting could help quite a lot, too.
>>>>
>
> module std.script;
>
> public import std.stdio, std.file, std.process, std.algorithm, ... etc
>
> I use at least some of these for most of my programs/scripts. And
> std.all is probably a bit too heavy.
>
> std.script could basically fetch us enough stuff to be on par with
> importless python.
Maybe it would be better to just make rdmd to surround source code with:
//----- rdmd generated text BEGIN
public import std.stdio, ...
void main( string[] args ){
//----- rdmd generated text END
// programmer's code
}
in cases when rdmd detects there is no main()
--
Alexander
More information about the Digitalmars-d
mailing list