== Quote from so (s...@so.do)'s article > Hello! > In D, it is much harder to say something is impossible to implement > comparing to other languages. > If you are coming from C/C++ land, you should know that if you want to > script your program, > you are going to fall back to another language, possibly a "scripting" > language. > But why? why should i fall back to a dummy language for this? Tons of > workarounds to export stuff, it is just a mess! > It doesn't matter if we have tools like boost python bindings or PyD, it > is still ugly. > All i can see right now is the lack of compile(file, module dependencies, > ...). > Is it just technical limitations or is this is another religious issue? > Thanks!
Doesn't this work?? import std.file; import std.script; Script s = new Script(cast(ubyte[]) read("script1.d")); s.compile(); s.execute();