Official DMD compiler written in D

Timon Gehr timon.gehr at gmx.ch
Wed Jan 9 19:51:35 PST 2013


On Wednesday, 9 January 2013 at 18:45:56 UTC, H. S. Teoh wrote:
> On Wed, Jan 09, 2013 at 12:05:55PM +0100, Timon Gehr wrote:
>> On 01/08/2013 10:06 PM, Philippe Sigaud wrote:
> [...]
>> >Also, Timon Gehr spoke of his own front-end (assumed to be in 
>> >D) in the
>> >past, but did not provide any link to it.
>> >
>> 
>> Yes, it is in D. Nothing is released yet. It needs to be 
>> polished a
>> little so that there are no known embarrassing shortcomings 
>> anymore.
> [...]
>> CTFE is basically done (as a portable byte code interpreter, 
>> ...
>> 
>> static assert(array(take(dynRangePrimes(), 20)) ==
>> [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71]);
>> 
>> )
>
> Whoa!!! Now you really caught my interest!
>
> Can it handle CTFE-computed mixins that declare and reference 
> variables?
> If it can, I will finally be able to write a library AA 
> implementation
> that allows static AA literals (no runtime init/allocation 
> needed)!
>
>

Probably yes, but I am not sure what you mean. Can you provide an 
example?



More information about the Digitalmars-d mailing list