Semicolons: mostly unnecessary?

Nick Sabalausky a at a.a
Thu Oct 22 03:19:36 PDT 2009


"AJ" <aj at nospam.net> wrote in message news:hbpb1b$29uc$1 at digitalmars.com...
>
> "KennyTM~" <kennytm at gmail.com> wrote in message 
> news:hbpa89$27si$1 at digitalmars.com...
>>
>> OK.
>>
>> struct S { int a }
>> int a
>>
>> void main () {
>>   S s
>>   auto t = s
>>   .a = 1       // ambiguity: Note that .sth means global scope.
>> }
>
> That's not ambiguous, it's erroneous. The passage means:
>
> auto t = s // fine
> .a = 1 // can't have .a without something on the left of the dot
>    // or else remove the dot
>

Wrong. Read the D docs. 





More information about the Digitalmars-d mailing list