Array Copying syntax

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Sep 16 11:48:23 PDT 2016


On 9/16/16 2:28 PM, Antonio Corbi wrote:
> On Friday, 16 September 2016 at 18:12:22 UTC, Steven Schveighoffer wrote:
>> On 9/16/16 2:03 PM, Antonio Corbi wrote:
>>
>>> Hi Jonathan!
>>>
>>> Probably this entry in https://dlang.org/spec/arrays.html#usage confused
>>> me a bit.
>>>
>>> int[3] s;
>>> ....
>>> s = ...;   // error, since s is a compiled in static
>>>            // reference to an array.
>>>
>>> Thanks for your help!
>>> Antonio
>>
>> Yeah, that's bad.
>>
>> https://github.com/dlang/dlang.org/pull/1474
>>
>> -Steve
>
> Hi Steve,
>
> Way clearer (at least for me) with your patch!

Hah, except it's actually wrong :) s = a compiles.

I don't know what that line is supposed to mean now...

-Steve



More information about the Digitalmars-d-learn mailing list