DMD 0.161 release
Walter Bright
newshound at digitalmars.com
Tue Jun 20 15:51:04 PDT 2006
Vladimir wrote:
> Walter Bright wrote:
>> Mostly bug fixes.
>>
>> http://www.digitalmars.com/d/changelog.html
>
> Nice work, Walter. Thank you.
>
> I hoped the following code will not compile with .161
>
> #struct A
> #{
> # int x;
> #}
> #
> #void main()
> #{
> # A a;
> # with(a) {
> # int x; // compiles without error
> # }
> #}
A.x is a field, not a local variable, so the shadowing rule doesn't apply.
More information about the Digitalmars-d-announce
mailing list