Hello Walter,
http://www.drdobbs.com/blog/archives/2010/06/the_x_macro.htmlEven 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><