Thread overview | ||||||
---|---|---|---|---|---|---|
|
July 04, 2020 [Issue 21011] Variant and tuples by index | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21011 --- Comment #1 from superDIMMaX <v.leolui@gmail.com> --- i found only one strange solution: writeln(test.get!(Tuple!(int, int))()[1]); and if this not issue, can be add ability opIndex and length on tuples? -- |
July 06, 2020 [Issue 21011] Variant and tuples by index | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21011 --- Comment #2 from superDIMMaX <v.leolui@gmail.com> --- And i confused. why this not working with any [] opIndex API and(or) why not add tuples support? Variant know type Tuple!(int,int) and tuples have linear layout - union{Tuple!(int,int) t; int[2] a} work fine -- |
July 08, 2020 [Issue 21011] Variant and tuples by index | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21011 --- Comment #3 from superDIMMaX <v.leolui@gmail.com> --- Found solution how avoid issue with Variant and access Tuple inside by [] - put tuple inside struct and -alias _tuple this- then -Variant v[0]- works and no errors. -- |
December 17, 2022 [Issue 21011] Variant and tuples by index | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21011 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P3 -- |
Copyright © 1999-2021 by the D Language Foundation