diff options
Diffstat (limited to 'cpp/042new')
-rw-r--r-- | cpp/042new | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/042new b/cpp/042new index 7244cca2..0fa7e16a 100644 --- a/cpp/042new +++ b/cpp/042new @@ -1,7 +1,7 @@ //: A simple memory allocator to create space for new variables at runtime. :(scenarios run) -:(scenario "new") +:(scenario new) # call new two times with identical arguments; you should get back different results recipe main [ 1:address:integer/raw <- new integer:type @@ -64,7 +64,7 @@ case NEW: { break; } -:(scenario "new_array") +:(scenario new_array) recipe main [ 1:address:array:integer/raw <- new integer:type, 5:literal 2:address:integer/raw <- new integer:type @@ -78,7 +78,7 @@ recipe main [ //:: Next, extend 'new' to handle a string literal argument. -:(scenario "new_string") +:(scenario new_string) recipe main [ 1:address:array:character <- new [abc def] 2:character <- index 1:address:array:character/deref, 5:literal |