CTFE - compiling other languages inside D
Timon Gehr
timon.gehr at gmx.ch
Wed Aug 10 13:49:37 PDT 2011
Marco Leise wrote:
> For starters, how about this?:
> static string someExternalText = __ctfeReadFile("external.txt");
> static byte[] chipInitialState = __ctfeReadFile("initial_state.bin");
static string someExternalText = import("external.txt");
static byte[] chipInitialState = import("initial_state.bin");
(You need to pass the -Jpath switch)
More information about the Digitalmars-d
mailing list