Mixin template evaluated to string can convert to string mixinexpression implicitly
Alex_Dovhal
alex_dovhal at yahoo.com
Fri Jun 24 09:47:06 PDT 2011
"kenji hara" <k.hara.pg at gmail.com> wrote:
> My proposal is just a syntactic sugar.
> You can develop such library without it.
yes, but still stable DMD release can't handle pointers in CTFE.
And without such syntactic sugar it's ungly to write something like that
mixin(sum!q{i : iota(N); mixin(sum!q{j : iota(M), j !=i ;
(i+j)/(i-j) }) });
this looks much better
sum!q{i : iota(N); sum!q{j : iota(M), j !=i ; (i+j)/(i-j)}};
More information about the Digitalmars-d
mailing list