From 7284d503f67572dab678f68e5635c471a9d53480 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 17 Apr 2015 23:24:52 -0700 Subject: 1094 - demarcate sections in layers We have tangled vs regular comments, but they highlight the same. So we're still at 3 colors for comments. Anything more starts to seem gratuitous. --- cpp/032array | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp/032array') diff --git a/cpp/032array b/cpp/032array index 284ca592..3aa531d0 100644 --- a/cpp/032array +++ b/cpp/032array @@ -56,7 +56,8 @@ if (x.types[0] != Type_number["array"] && size_of(x) != data.size()) return 1 + Memory[r.value]*size_of(array_element(r.types)); } -//: To access elements of an array, use 'index' +//:: To access elements of an array, use 'index' + :(scenario "index") recipe main [ 1:integer <- copy 3:literal @@ -139,7 +140,7 @@ recipe main [ +run: address to copy is 2 +mem: storing 2 in location 5 -//: To write to elements of containers, you need their address. +//:: To write to elements of containers, you need their address. :(scenario "index_indirect") recipe main [ -- cgit 1.4.1-2-gfad0