On 17.05.2015 13:48, extrawurst wrote:
On Sunday, 17 May 2015 at 08:04:44 UTC, Manu wrote:
This is a really great release!
I missed the lexical scope support. I'll try that out right away. It's
been a long time coming :)


What is meant by "support lexical scope blocks" ?

void foo() {
   {int x;} // ?
}

Similar, it's more about the second 'i' being hidden in:

void main()
{
   for(int i = 0; i < 10; i++)
      writefln("1 - %d", i);

   for(int i = 0; i < 10; i++)
      writefln("2 - %d", i);
}

See https://issues.dlang.org/show_bug.cgi?id=3657.

Unfortunately the respective PR is still not merged: https://github.com/D-Programming-Language/dmd/pull/2867

So, the lexical scope support in mago currently helps only with a manually updated dmd, or when stepping into C/C++ code.

Reply via email to