preprocessor pass equivalent?

Dmitry Olshansky dmitry.olsh at gmail.com
Thu Mar 15 02:05:45 PDT 2012


On 15.03.2012 12:35, Jay Norwood wrote:
> Is there some option, similar to -E gcc option, that would generate the
> analogous listing for D? What I mean is that I'd like to see all the
> code in version blocks gone, all the mixin strings expanded.
>
> It is probably too much to wish for having the infered auto's expanded...
>

Not every auto could be expanded, even simple stuff like:

auto add(T1,T2)(T1 t1, T2 t2){ return t1+t2; }

Expanding mixins could be useful, yet in certain circumstances I'd 
rather not see the resulting code :)

-- 
Dmitry Olshansky


More information about the Digitalmars-d-learn mailing list