A collection within a collection within an array. Sounds complicated, doesn't it?
I don't know whether this should be possible or not, but the following test program does compile and run...
Trouble is, it doesn't work the way it should. It should print these numbers: 1,13,17,2,14,18 ...but instead, it produces this list: 1,13,17,2,13,17
So question is, have I made a mistake or uncovered an obscure bug?
I don't know whether this should be possible or not, but the following test program does compile and run...
Type Maxi Field Val Field List.Mini End Type Type Mini Field SubValue End Type Dim A.maxi(5) A.Maxi(1) = New Maxi A(1)\Val=1 A(1)\List.Mini = New Mini A(1)\List\SubValue = 13 A(1)\List.Mini = New Mini A(1)\List\SubValue = 17 A.Maxi(2) = New Maxi A(2)\Val=2 A(2)\List.Mini = New Mini A(2)\List\SubValue = 14 A(2)\List.Mini = New Mini A(2)\List\SubValue = 18 Print A(1)\Val A(1)\List.Mini = First Mini Print A(1)\List\SubValue A(1)\List = After A(1)\List Print A(1)\List\SubValue Print A(2)\Val A(2)\List.Mini = First Mini Print A(2)\List\SubValue A(2)\List = After A(2)\List Print A(2)\List\SubValue
Trouble is, it doesn't work the way it should. It should print these numbers: 1,13,17,2,14,18 ...but instead, it produces this list: 1,13,17,2,13,17
So question is, have I made a mistake or uncovered an obscure bug?