On Fri, 30 Dec 2011 16:11:54 +0200, Vladimir Panteleev
<vladi...@thecybershadow.net> wrote:
On Friday, 30 December 2011 at 12:05:27 UTC, Timon Gehr wrote:
On 12/30/2011 06:58 AM, Vladimir Panteleev wrote:
On Thursday, 29 December 2011 at 23:47:08 UTC, Timon Gehr wrote:
** The X template
Good work, but I'm not sure if inventing a DSL to make up for the
problems in D string mixins that C macros don't have qualifies as
"doing
it right".
It certainly does. That is how all my code generation looks like. The
fact that I am using string mixins to solve some problems shows that
those are not 'problems in D string mixins'.
Never mind. You're right. I hadn't thought of this before (using DSL
nesting to avoid breaking token nesting); it's a nice idea. I think I'll
steal this for my code :)
For me, mixin sounds much more intuitive than inline for what we are
trying to achieve with force-inline.
If it was user friendly now that would be awesome.