diff options
Diffstat (limited to 'cpp/019array')
-rw-r--r-- | cpp/019array | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cpp/019array b/cpp/019array index 3d797161..8a9af8c4 100644 --- a/cpp/019array +++ b/cpp/019array @@ -1,13 +1,14 @@ -// Support for arrays. -:(before "End Mu Types") -// We'll use this array as a running example: +//: Support for arrays. +:(before "End Mu Types Initialization") +//: We'll use this array as a running example: int integer_array = Type_number["integer-array"] = Next_type_number++; Type[integer_array].is_array = true; Type[integer_array].element.push_back(integer); +//: Arrays can be copied around with a single instruction just like integers, +//: no matter how large they are. + :(scenario copy_array) -# Arrays can be copied around with a single instruction just like integers, -# no matter how large they are. recipe main [ 1:integer <- copy 3:literal 2:integer <- copy 14:literal |