aboutsummaryrefslogtreecommitdiffstats
path: root/examples/editor.aup
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-09-25 13:34:43 +0100
committereunhhu <[email protected]>2026-09-25 13:34:43 +0100
commita459632cbb93b46c013556465a9e69b0baad745a (patch)
tree05ef189a3eebb7c954a348f6501403d9d60cabf9 /examples/editor.aup
parentb4ec5eeaab82ee7c876f7d02e6430997f7240899 (diff)
downloadaup-a459632cbb93b46c013556465a9e69b0baad745a.tar.gz
aup-a459632cbb93b46c013556465a9e69b0baad745a.zip
Add records, lists and indices
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.
Diffstat (limited to 'examples/editor.aup')
0 files changed, 0 insertions, 0 deletions