about summary refs log tree commit diff stats
path: root/030container.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-09-06 22:11:03 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-09-06 22:11:03 -0700
commit8e498220ef9cc8a25cd56a0f06cb556b141d44f5 (patch)
treeb077c70c3328a00d8992c9cd6dd6805fbec2f1c9 /030container.cc
parent5df25864eb449b407a9ab6244045cd4451e1d6fb (diff)
downloadmu-8e498220ef9cc8a25cd56a0f06cb556b141d44f5.tar.gz
3301
Diffstat (limited to '030container.cc')
-rw-r--r--030container.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/030container.cc b/030container.cc
index 80d3e259..8047bd99 100644
--- a/030container.cc
+++ b/030container.cc
@@ -1,7 +1,7 @@
 //: Containers contain a fixed number of elements of different types.
 
 :(before "End Mu Types Initialization")
-//: We'll use this container as a running example, with two number elements.
+//: We'll use this container as a running example in scenarios below.
 type_ordinal point = put(Type_ordinal, "point", Next_type_ordinal++);
 get_or_insert(Type, point);  // initialize
 get(Type, point).kind = CONTAINER;
@@ -13,8 +13,8 @@ get(Type, point).elements.push_back(reagent("y:number"));
 //: numbers, no matter how large they are.
 
 //: Tests in this layer often explicitly set up memory before reading it as a
-//: container. Don't do this in general. I'm tagging exceptions with /raw to
-//: avoid errors.
+//: container. Don't do this in general. I'm tagging exceptions with /unsafe to
+//: skip later checks.
 :(scenario copy_multiple_locations)
 def main [
   1:number <- copy 34
@@ -33,8 +33,8 @@ def main [
 +error: main: can't copy '1:number' to '2:point'; types don't match
 
 :(before "End Mu Types Initialization")
-// A more complex container, containing another container as one of its
-// elements.
+// A more complex example container, containing another container as one of
+// its elements.
 type_ordinal point_number = put(Type_ordinal, "point-number", Next_type_ordinal++);
 get_or_insert(Type, point_number);  // initialize
 get(Type, point_number).kind = CONTAINER;