Interesting work on packing tuple layout
Timon Gehr
timon.gehr at gmx.ch
Mon Jun 15 14:18:38 UTC 2020
On 15.06.20 16:03, Max Samukha wrote:
> On Monday, 15 June 2020 at 13:57:01 UTC, Max Samukha wrote:
>
>>> void main() {
>>> Tuple!(byte, int, short) t;
>>> writeln(t[0]);
>>> }
>>>
>>>> test.d(57,23): Error: need `this` for `__value_field_2` of type `byte`
>>
>> It should work. This works:
>>
>> void main() {
>> Tuple!(byte, int, short) t;
>>
>> t[0] = 0;
>> t[1] = 2;
>> t[2] = 3;
>>
>> auto a0 = t[0];
>> auto a1 = t[1];
>> }
>> }
>
> I cannot reproduce the error. writeln(t[0]) works here:
> https://run.dlang.io/is/kz6lFc
>
Apparently, it has been fixed in 2.092. Nice!
More information about the Digitalmars-d-announce
mailing list