DIP 50 - AST macros

Timon Gehr timon.gehr at gmx.ch
Wed Nov 13 12:50:19 PST 2013


On 11/13/2013 08:25 PM, Walter Bright wrote:
>>
>
> Ah, found the code:
>
> void ifthen(bool cond, lazy void dg)
> {
>      if (cond)
>          dg();
> }

int foo(int x){
     ifthen(!x, return 2); // uh oh
     return 3;
}


More information about the Digitalmars-d mailing list