diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-16 10:35:49 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-16 10:35:49 -0700 |
commit | db5c9550e972d114aaabb95b14cfd1e3ea185349 (patch) | |
tree | 9217134d1154e45f5375f94c9b5788530fbf8cb7 /cpp/.traces/copy_handles_nested_container_elements | |
parent | d6852155e5308e2bb347402bf9e069c7153c2319 (diff) | |
download | mu-db5c9550e972d114aaabb95b14cfd1e3ea185349.tar.gz |
1069 - rename record/field to container/element
This seems more obvious to laypeople. I've also come up with a design for sum types: I'm going to call them exclusive containers. You call 'get' on containers, 'index' on arrays, and 'maybe-convert' on exclusive containers (as well as tagged types, but that's even later).
Diffstat (limited to 'cpp/.traces/copy_handles_nested_container_elements')
-rw-r--r-- | cpp/.traces/copy_handles_nested_container_elements | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/cpp/.traces/copy_handles_nested_container_elements b/cpp/.traces/copy_handles_nested_container_elements new file mode 100644 index 00000000..8ca9a547 --- /dev/null +++ b/cpp/.traces/copy_handles_nested_container_elements @@ -0,0 +1,34 @@ +parse/0: instruction: 1 +parse/0: ingredient: {name: "34", value: 0, type: 0, properties: ["34": "literal"]} +parse/0: product: {name: "12", value: 0, type: 1, properties: ["12": "integer"]} +parse/0: instruction: 1 +parse/0: ingredient: {name: "35", value: 0, type: 0, properties: ["35": "literal"]} +parse/0: product: {name: "13", value: 0, type: 1, properties: ["13": "integer"]} +parse/0: instruction: 1 +parse/0: ingredient: {name: "36", value: 0, type: 0, properties: ["36": "literal"]} +parse/0: product: {name: "14", value: 0, type: 1, properties: ["14": "integer"]} +parse/0: instruction: 1 +parse/0: ingredient: {name: "12", value: 0, type: 7, properties: ["12": "point-integer"]} +parse/0: product: {name: "15", value: 0, type: 7, properties: ["15": "point-integer"]} +after-brace/0: recipe main +after-brace/0: copy ... +after-brace/0: copy ... +after-brace/0: copy ... +after-brace/0: copy ... +run/0: instruction main/0 +run/0: ingredient 0 is 34 +mem/0: storing 34 in location 12 +run/0: instruction main/1 +run/0: ingredient 0 is 35 +mem/0: storing 35 in location 13 +run/0: instruction main/2 +run/0: ingredient 0 is 36 +mem/0: storing 36 in location 14 +run/0: instruction main/3 +run/0: ingredient 0 is 12 +mem/0: location 12 is 34 +mem/0: location 13 is 35 +mem/0: location 14 is 36 +mem/0: storing 34 in location 15 +mem/0: storing 35 in location 16 +mem/0: storing 36 in location 17 |