aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tasks.aup
Commit message (Collapse)AuthorAgeFilesLines
* Add records, lists and indiceseunhhu2026-09-251-0/+42
A record declares named number and text fields with defaults. A list of a record is runtime-owned state, and an index of a list always names one of its items: it follows its item across inserts and removes and stops at the ends. Items are read and changed by field (tasks[at].title), appended or inserted as record values whose missing fields take defaults, and removed by index. Using an index of another list is a compile error. examples/tasks.aup matches a Python reference model over 4,800 random steps, including events that fail on an empty list. Replacing it with a module whose record gained and reordered fields keeps every item.