Visual D 0.3.41 released

Rainer Schuetze via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sun May 17 04:58:36 PDT 2015



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.


More information about the Digitalmars-d-announce mailing list