about summary refs log tree commit diff stats
path: root/030container.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-09-09 11:03:49 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-09-09 12:06:04 -0700
commit97a418438d79fed91e8564bea64e31c670e994b2 (patch)
tree0af8bf18c82fda19bda9ebb82346c9e3a7493887 /030container.cc
parentf9d069b53ca8733753346262ab10a4ac05d28db2 (diff)
downloadmu-97a418438d79fed91e8564bea64e31c670e994b2.tar.gz
3307
Diffstat (limited to '030container.cc')
-rw-r--r--030container.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/030container.cc b/030container.cc
index a1499a8b..c24d6f7d 100644
--- a/030container.cc
+++ b/030container.cc
@@ -202,6 +202,9 @@ void compute_container_sizes(const type_tree* type, set<type_ordinal>& pending_m
   if (!contains_key(Type, type->value)) return;  // error raised elsewhere
   type_info& info = get(Type, type->value);
   if (info.kind == CONTAINER) {
+    // size of a container is the sum of the sizes of its element
+    // (So it can only contain arrays if they're static and include their
+    // length in the type.)
     container_metadata metadata;
     for (int i = 0; i < SIZE(info.elements); ++i) {
       reagent/*copy*/ element = info.elements.at(i);