why scope(success)?

Ben Hinkle ben.hinkle at gmail.com
Wed May 10 17:38:01 PDT 2006


"Sean Kelly" <sean at f4.ca> wrote in message 
news:e3tjf6$1v3n$1 at digitaldaemon.com...
> James Dunne wrote:
>>
>> if statements do not create a scope without { }, therefore it should be 
>> at B.
>
> They don't?
>
>
> Sean

They do. The code
  if (1)
    int a = 10;
  a = 20;
is illegal. 





More information about the Digitalmars-d mailing list