On 1/1/11, Philippe Sigaud <[email protected]> wrote:
> I'm not sure it's doable at
> compile-time right now: you need to have access to the module code, as
> text. Do imports work in CT-evaluable functions?
>
> Philippe
>

You're gonna love this:

module mymodule;

void main()
{
    pragma(msg, import(.stringof[7..$] ~ ".d"));
}

Of course, you need to -J switch with the path of your module.

Reply via email to