Compiling D inside of a D program
thedeemon
dlang at thedeemon.com
Sat Dec 21 01:09:18 PST 2013
On Saturday, 21 December 2013 at 08:55:04 UTC, Mineko wrote:
> To be even more to the point, how can I invoke the D compiler
> inside of a D program, also, do I need to bundle said D
> compiler with my program or does D have some compilation
> feature inside of an already compiled program (Which I doubt)?
D runtime doesn't include any compilation abilities, it's not a
Lisp. You'll need to invoke the compiler as a separate process.
Look at this example:
http://dlang.org/phobos/std_process.html#.execute
More information about the Digitalmars-d-learn
mailing list