Мелочь, а приятно.
Код, который ранее выглядел так:
X++:
static void test(Args _args)
{
container con = [1, 12.5, 'test', 2, 3, 'tetst'];
int i;
;
for (i=1; i<=conlen(con); i++)
info(conpeek(con, i));
}
можно записать так:
X++:
static void test4(Args _args)
{
container con = [1, 12.5, 'test', 2, 3, 'tetst'];
gm_containerIterator iterator = new gm_ContainerIterator(con);
;
while(iterator.more())
{
info(iterator.value());
iterator.next();
}
}