From f3bce7176bc15ec04739c61db0d189cbaaaca7d8 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 14 Apr 2015 23:52:16 -0700 Subject: 1065 - example program for closures --- cpp/090debug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/090debug') diff --git a/cpp/090debug b/cpp/090debug index b6acae9d..a2a74d18 100644 --- a/cpp/090debug +++ b/cpp/090debug @@ -8,14 +8,14 @@ assert(Next_recipe_number < _PRINT); case _PRINT: { if (isa_literal(instructions[pc].ingredients[0])) { trace("run") << "$print: " << instructions[pc].ingredients[0].name; - cout << instructions[pc].ingredients[0].name << '\n'; + cout << instructions[pc].ingredients[0].name; break; } vector result(read_memory(instructions[pc].ingredients[0])); for (size_t i = 0; i < result.size(); ++i) { trace("run") << "$print: " << result[i]; - cout << result[i] << " "; + if (i > 0) cout << " "; + cout << result[i]; } - cout << '\n'; break; } -- cgit 1.4.1-2-gfad0