Mixing struct and list causes display trouble. The data seems to be correctly
Reported by Bruno JOFRET (@bruno.jofret)
Originally assigned to Steer Serge
-- Bug description --
Mixing struct and list causes display trouble.
The data seems to be correctly stored, but they are not fully displayed.
-- Scilab error message --
Result is :
==============
-->tl2 = tlist("X", tl1 , tl1)
tl2 =
tl2(1)
X
tl2(2)
tl2(2)(1)
X
tl2(2)(2)
field: "value"
But should be :
================
-->tl2 = tlist("X", tl1 , tl1)
tl2 =
tl2(1)
X
tl2(2)
tl2(2)(1)
X
tl2(2)(2)
field: "value"
tl2(3)
tl2(3)(1)
X
tl2(3)(2)
field: "value"
-- How to reproduce the bug --
// Create a struct with a single field
struct.field = "value";
// Add this struct in a tlist
tl1 = tlist("X", struct);
tl2 = tlist("X", tl1, tl1)
// The data are not shown
// But they seems to be there
tl2(3)
// Same beahviour with a list
l1 = list(struct);
l2 = list(l1, l1);
// Same demonstration with a list
l2(3)