The future of UDAs.

Gor Gyolchanyan gor.f.gyolchanyan at gmail.com
Tue Nov 27 03:38:37 PST 2012


Yeah, current D's compile-time model makes it impossible. And I agree, that
D's compile-time model isn't going to change any time soon (if ever).
That's depressing. Having a complete compile-time reflection without this
will require heavy duty compiler magic.


On Tue, Nov 27, 2012 at 3:34 PM, Jonathan M Davis <jmdavisProg at gmx.com>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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20121127/c92abe9b/attachment-0001.html>


More information about the Digitalmars-d mailing list