Possible enhancement: Concise return statements

Walter Bright newshound2 at digitalmars.com
Mon Aug 15 13:05:31 PDT 2011


On 8/15/2011 12:17 PM, Steven Schveighoffer wrote:
> What is going to happen if someone adds an extra ';' ? Compiler error ("no
> return statement")

Such lambdas are often used with 'auto' returns, so you'd get no compiler error, 
but a subtle in the way your program works.


More information about the Digitalmars-d mailing list