DIP1001: DoExpression

Cauterite via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 3 09:53:59 PDT 2016


On Saturday, 3 September 2016 at 16:03:39 UTC, Jonathan M Davis 
wrote:
> So, instead of having the return statement which everyone knows 
> to look for and is easy to grep for, you want to add a way to 
> return _without_ a return statement?

I think you've misunderstood. Even with DoExpressions, the only 
way to return from a function without a return statement is in a 
lambda '=>' function.


More information about the Digitalmars-d mailing list