Knowing that my only hope is that new std.reflection (and all compiler
magic that comes with it) will remedy all big problems that I wanted to
solve using compile-time mutable variables.


On Tue, Nov 27, 2012 at 3:34 PM, Jonathan M Davis <[email protected]>wrote:

> On Tuesday, November 27, 2012 15:28:10 Gor Gyolchanyan wrote:
> > Basically the most important thing I miss is mutable compile-time
> > variables. That's it. Everything else can be worked around.
>
> Having them would break the compilation model, so we're never going to get
> them. D quite specifically avoids them because it solves all kinds of
> problems
> to not have them (e.g. issues with the order of initialization of
> variables).
> If a mutable variable, than use a local variable inside of a template or
> function with CTFE. That's as close as you're going to get.
>
> - Jonathan M Davis
>



-- 
Bye,
Gor Gyolchanyan.

Reply via email to