diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-24 10:19:03 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-24 10:19:03 -0700 |
commit | 88be3dbc0c996490dbac97538f4d712a5b4f6f07 (patch) | |
tree | dbba8f597d3090bb71553544ba28c59644973b3b /cpp/031address | |
parent | e351d6fd04d95068fac4402dc103e0752182fa8d (diff) | |
download | mu-88be3dbc0c996490dbac97538f4d712a5b4f6f07.tar.gz |
1162
Diffstat (limited to 'cpp/031address')
-rw-r--r-- | cpp/031address | 10 |
1 files changed, 5 insertions, 5 deletions
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 |