Delorien:
I have a C macro, which takes an argument, log it and call a function.So, if I had a source code like this:{ _logfx(x + 10); } the actual code would be DebugLog("x + 10"); fx(x + 10); Can I make similar tricks in the D language?
Is a syntax like this acceptable?
mixin(LogIt!(fn, q!{x + 10}));
Bye,
bearophile
