Version bug?

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat Aug 21 16:11:04 PDT 2010


Oops, that was supposed to be dmd -JC:\blabla\

-I is for the path used in import declarations, -J is for import expressions.

On Sat, Aug 21, 2010 at 2:23 AM, Andrej Mitrovic
<andrej.mitrovich at gmail.com> wrote:
> mixin(import("file.d"));
>
> You need to pass -IPATH to DMD to use with imports like that, as in:
> dmd -IC:\blabla\
>
> Thats a capital "i" there.
>
>
>> IIRC, you can do something with mixin and import to load in an external file as
>> code, but since I've never used it and don't expect to any time soon (and
>> probably not ever), I don't remember exactly how it works. I believe that TDPL
>> talks about it though. So, that would effectively give you a #include.
>>
>> - Jonathan M Davis
>>
>


More information about the Digitalmars-d mailing list