Custom Blocks

Kagamin spam at here.lot
Mon Aug 9 22:19:02 PDT 2010


Andrei Alexandrescu Wrote:

> FWIW we've been talking a long time ago about a simple lowering - if the 
> last argument to a function is a delegate, allow moving the delegate's 
> body outside of the function:
> 
> fun(a, b, c) { body }
> 
>   |
>   V
> 
> fun((a, b, c) { body });

I don't think, doOnce will work. Though, it's a useful idiom.


More information about the Digitalmars-d mailing list