Posted by: subtledoctor
« on: March 01, 2022, 09:44:50 AM »Also, it seems the array construct always needs a key or an index. Isn't possible to make it automatically assign an index when you just specify a list of values? Which would be like DEFINE_ARRAY but dynamic.I just do something like
Code: [Select]
OUTER_SET ind = 1
ACTION_FOR_EACH thing IN ~thing_1~ ~thing_2~ ~thing_3~ BEGIN
OUTER_SPRINT $array(~%ind%~)~%thing%~
OUTER_SET ind = (ind + 1)
END
Sure you could build in some kind of auto-indexing but how much work would be involved, and how much effort would really be saved?