"AJ" <a...@nospam.net> wrote in message news:hbpb1b$29u...@digitalmars.com...
>
> "KennyTM~" <kenn...@gmail.com> wrote in message 
> news:hbpa89$27s...@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. 


Reply via email to