Yep, it is now possible to have nested structs inside a struct. The number of nested structs is unlimited.
- Code:
struct(s1$, "a", "b");
struct(s2$, "c", s1$, "d");
struct(s3$, "e", "f", s2$);
s3.f.c.a$ = 10;
s3.f.c.b$ = 20;
ShowMessage(s3.f.c.a$ + s3.f.c.b$);
list(l$);
for (i$, 1, 10)
add(l$);
struct(l$, "e", "f", s2$);
l.f.c.a$ = i$;
end;
foreach (l$)
ShowMessage(l.f.c.a$);
end;