Interesting work on packing tuple layout
Max Samukha
maxsamukha at gmail.com
Mon Jun 15 14:03:33 UTC 2020
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
More information about the Digitalmars-d-announce
mailing list