CTFE - compiling other languages inside D
Marco Leise
Marco.Leise at gmx.de
Wed Aug 10 14:43:28 PDT 2011
Am 10.08.2011, 22:49 Uhr, schrieb Timon Gehr <timon.gehr at gmx.ch>:
> 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)
Oh err, well. I was a little behind time it seems *g*.
So Ary Manzana was wrong saying "I think it's possible, though CTFE can't
access outside resources."
More information about the Digitalmars-d
mailing list