Re: Mixin template evaluated to string can convert to string mixinexpression implicitly

2011-06-24 Thread Alex_Dovhal
kenji hara k.hara...@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);

Re: Mixin template evaluated to string can convert to string mixinexpression implicitly

2011-06-24 Thread kenji hara
I already checked the test implementation passed dmd build/test and phobos build/test. You can checkout 'implicit_mixin' branch from my repository (https://github.com/9rnsr/dmd/) and use it. Note: A simple way to construct environment for build dmd/druntime/phobos is: 1. Expand newest release

Re: Mixin template evaluated to string can convert to string mixinexpression implicitly

2011-06-24 Thread %u
== Quote from kenji hara (k.hara...@gmail.com)'s article Note: A simple way to construct environment for build dmd/druntime/phobos i s: 1. Expand newest release package. 2. Replace dmd2/src/dmd, dmd2/src/druntime, and dmd2/src/phobos to checkouted git repositories. 3. Copy

Re: Mixin template evaluated to string can convert to string mixinexpression implicitly

2011-06-24 Thread Alex_Dovhal
%u asm...@hotmail.com wrote: == Quote from kenji hara (k.hara...@gmail.com)'s article Note: A simple way to construct environment for build dmd/druntime/phobos i s: 1. Expand newest release package. 2. Replace dmd2/src/dmd, dmd2/src/druntime, and dmd2/src/phobos to checkouted git