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.mitrov...@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 >> >