anonymous function/deleget usage

Ary Borenszweig ary at esperanto.org.ar
Thu Nov 12 09:01:52 PST 2009


bearophile wrote:
> Steven Schveighoffer:
> 
>> int c = (){return a + b;}();
> 
> You can also write:
> int c = {return a + b;}();
> 
> Bye,
> bearophile

Shorter:

int c = a + b;


More information about the Digitalmars-d-learn mailing list