D compiler embedding

Peloto peloto at peloto.com
Sun May 3 21:29:23 PDT 2009


Can I embed the D compiler into my application? For example:

Dcompiler c;
Dcompiler::result *r = c.compile("mySource.d");
fstream f("result.bin");
f.write(r->GetBuffer(),r->GetNBytes());

And other doubt... where's the Solaris port for the D compiler? I see only Windows, linux, freeBSD and MacOSX.

thx.



More information about the Digitalmars-d mailing list