Re: The D Scripting Language

2010-11-16 Thread Alexey Khmara
I really think that it would be good to ship something like this with dmd and promote it default "D script" handler. May be, parsing must be more complicated (I'm not sure that all features will work inside main()), but as D is easy for parsing I see no big problems.Of cource, we can add more comp

Re: The D Scripting Language

2010-11-16 Thread Alexey Khmara
"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. So for writeln("hello, world!")