Lambda are capricious little animals indeed

David Nadlinger code at klickverbot.at
Sun Oct 27 07:16:19 PDT 2013


On Sunday, 27 October 2013 at 14:01:31 UTC, Derix wrote:
> I get the immutable(char)[] : an immutable array of characters, 
> why not. But I really don"t get the set of parens between the 
> square brackets and the asterisk. Could that mean that what I 
> get is in fact a pointer to a function ? (said function having 
> no arguments, or having void as sole argument or ...)

Yes, this is correct.

You still have to call the lambda: { return 42; }().

David


More information about the Digitalmars-d-learn mailing list