*the* J switch. On 1/1/11, Andrej Mitrovic <[email protected]> wrote: > 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. >
- Loop through all modules and module members? %u
- Re: Loop through all modules and module members? bearophile
- Re: Loop through all modules and module members? Philippe Sigaud
- Re: Loop through all modules and module membe... Andrej Mitrovic
- Re: Loop through all modules and module m... Andrej Mitrovic
- Re: Loop through all modules and module m... Philippe Sigaud
- Re: Loop through all modules and mod... Andrej Mitrovic
