On Thursday, 30 May 2013 at 16:59:42 UTC, Timothee Cour wrote:
In this:
auto:
   x = 1;
   y = 2;
   f = a => a+1
   writeln(f(x) + y);

where do you delimit the end of the 'auto:' scope?

At the end of the current scope - same rules as normal.

You can use { ... } to create a new scope where necessary.

Reply via email to