diff options
-rw-r--r-- | 030container.cc | 6 | ||||
-rw-r--r-- | 033exclusive_container.cc | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/030container.cc b/030container.cc index c54a4be5..4a6ad1d2 100644 --- a/030container.cc +++ b/030container.cc @@ -6,8 +6,8 @@ type_ordinal point = put(Type_ordinal, "point", Next_type_ordinal++); get_or_insert(Type, point); // initialize get(Type, point).kind = CONTAINER; get(Type, point).name = "point"; -get(Type, point).elements.push_back(reagent("x:num")); -get(Type, point).elements.push_back(reagent("y:num")); +get(Type, point).elements.push_back(reagent("x:number")); +get(Type, point).elements.push_back(reagent("y:number")); //: Containers can be copied around with a single instruction just like //: numbers, no matter how large they are. @@ -40,7 +40,7 @@ get_or_insert(Type, point_number); // initialize get(Type, point_number).kind = CONTAINER; get(Type, point_number).name = "point-number"; get(Type, point_number).elements.push_back(reagent("xy:point")); -get(Type, point_number).elements.push_back(reagent("z:num")); +get(Type, point_number).elements.push_back(reagent("z:number")); :(scenario copy_handles_nested_container_elements) def main [ diff --git a/033exclusive_container.cc b/033exclusive_container.cc index 3fa8426a..d3852d61 100644 --- a/033exclusive_container.cc +++ b/033exclusive_container.cc @@ -11,7 +11,7 @@ type_ordinal tmp = put(Type_ordinal, "number-or-point", Next_type_ordinal++); get_or_insert(Type, tmp); // initialize get(Type, tmp).kind = EXCLUSIVE_CONTAINER; get(Type, tmp).name = "number-or-point"; -get(Type, tmp).elements.push_back(reagent("i:num")); +get(Type, tmp).elements.push_back(reagent("i:number")); get(Type, tmp).elements.push_back(reagent("p:point")); } |