"AJ" <[email protected]> wrote in message news:[email protected]...
>
> "KennyTM~" <[email protected]> wrote in message 
> news:[email protected]...
>>
>> 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