The X Macro
BCS
none at anon.com
Sat Jun 26 11:30:04 PDT 2010
Hello Walter,
> http://www.drdobbs.com/blog/archives/2010/06/the_x_macro.html
>
> Even though D doesn't have a text macro preprocessor, this can be done
> using string mixins and a bit of CTFE.
>
I did more or less the same thing to expand vector equations to there scalar
components. But for some reason I needed two passes through cpp and a run
through grep/sed (I think cpp was refusing to expand a macro on the correct
side of another macro.
--
... <IXOYE><
More information about the Digitalmars-d
mailing list