From ce9b2b0515eaf92a9c68c8608fd9bf392c941d50 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Fri, 15 Jun 2018 22:16:09 -0700 Subject: 4258 - undo 4257 --- 033exclusive_container.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to '033exclusive_container.cc') diff --git a/033exclusive_container.cc b/033exclusive_container.cc index e4fa6398..44161d7c 100644 --- a/033exclusive_container.cc +++ b/033exclusive_container.cc @@ -12,14 +12,12 @@ 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:number")); -get(Type, tmp).elements.back().set_value(0); get(Type, tmp).elements.push_back(reagent("p:point")); -get(Type, tmp).elements.back().set_value(1); } -//: Tests in this layer often explicitly set up memory before reading it as an -//: array. Don't do this in general. I'm tagging exceptions with /raw to keep -//: checks in future layers from flagging them. +//: Tests in this layer often explicitly set up memory before reading it as a +//: container. Don't do this in general. I'm tagging such cases with /unsafe; +//: they'll be exceptions to later checks. :(scenario copy_exclusive_container) # Copying exclusive containers copies all their contents and an extra location for the tag. def main [ -- cgit 1.4.1-2-gfad0