From 88be3dbc0c996490dbac97538f4d712a5b4f6f07 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 24 Apr 2015 10:19:03 -0700 Subject: 1162 --- cpp/031address | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cpp/031address') diff --git a/cpp/031address b/cpp/031address index e31ae67d..fd713a22 100644 --- a/cpp/031address +++ b/cpp/031address @@ -1,7 +1,7 @@ //: Instructions can read from addresses pointing at other locations using the //: 'deref' property. -:(scenario "copy_indirect") +:(scenario copy_indirect) recipe main [ 1:address:integer <- copy 2:literal 2:integer <- copy 34:literal @@ -18,7 +18,7 @@ x = canonize(x); //: similarly, write to addresses pointing at other locations using the //: 'deref' property -:(scenario "store_indirect") +:(scenario store_indirect) recipe main [ 1:address:integer <- copy 2:literal 1:address:integer/deref <- copy 34:literal @@ -76,7 +76,7 @@ reagent deref(reagent x) { } //:: 'get' can read from container address -:(scenario "get_indirect") +:(scenario get_indirect) recipe main [ 1:integer <- copy 2:literal 2:integer <- copy 34:literal @@ -88,7 +88,7 @@ recipe main [ +run: product 0 is 34 +mem: storing 34 in location 4 -:(scenario "include_nonderef_properties") +:(scenario include_nonderef_properties) recipe main [ 1:integer <- copy 2:literal 2:integer <- copy 34:literal @@ -103,7 +103,7 @@ recipe main [ :(after "reagent base = " following "case GET:") base = canonize(base); -:(scenario "get_address_indirect") +:(scenario get_address_indirect) # 'get' can read from container address recipe main [ 1:integer <- copy 2:literal -- cgit 1.4.1-2-gfad0