From 7e9c69251b700dbdec47dee47f37ba1194ad88e9 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 26 Mar 2015 21:47:29 -0700 Subject: 983 - arc 'integer-array' => c++ 'array:integer' --- cpp/018record | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/018record') diff --git a/cpp/018record b/cpp/018record index bdde8719..dba43a91 100644 --- a/cpp/018record +++ b/cpp/018record @@ -1,5 +1,4 @@ -//: Records are compound types with multiple elements of potentially different -//: types. +//: Records contain a fixed number of elements of different types. :(before "End Mu Types Initialization") //: We'll use this record as a running example, with two integer elements int point = Type_number["point"] = Next_type_number++; @@ -47,7 +46,8 @@ recipe main [ ] +mem: storing 36 in location 17 -:(before "End size_of Cases") +:(before "End size_of(types) Cases") +type_info t = Type[types[0]]; if (t.is_record) { size_t result = 0; for (size_t i = 0; i < t.elements.size(); ++i) { -- cgit 1.4.1-2-gfad0