Assert

Don Clugston dac at nospam.com.au
Thu Jun 28 06:44:58 PDT 2007


Reiner Pope wrote:
> David B. Held wrote:
>> I think assert() will get fixed when we get AST macros.

> I know we're deep in const at the moment, but is there any news/thoughts 
> on AST macros, to whet our appetites?

Why would you bother? Using DMD 1.015, the code to generate an AST is *very* 
short (less than 2 lines of code per operator). <g>
It's far more flexible than a built-in solution would be.

All we need is a bit of syntactic sugar to allow us to generate
mixin(func(`x+y`, `"abc"`));
when we type
func(x+y, "abc");

We can do everything else already. <g>



More information about the Digitalmars-d mailing list