about summary refs log tree commit diff stats
path: root/030container.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-08-14 16:58:59 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-08-14 16:58:59 -0700
commitc6520d9694d3cee265833b9e857f5f693645caba (patch)
tree46b832bf1921d6f4687aab7a1ded3488c8ff8c5b /030container.cc
parentcc835be2510ecea40a2382014d2e943cddb4ec29 (diff)
downloadmu-c6520d9694d3cee265833b9e857f5f693645caba.tar.gz
1994 - new primitive: 'create-array'
Not strictly necessary, but it might help me stage the introduction of
arrays and 'new'.
Diffstat (limited to '030container.cc')
-rw-r--r--030container.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/030container.cc b/030container.cc
index ac198929..808b64fe 100644
--- a/030container.cc
+++ b/030container.cc
@@ -325,7 +325,9 @@ void insert_container(const string& command, kind_of_type kind, istream& in) {
     vector<type_ordinal> types;
     while (!inner.eof()) {
       string type_name = slurp_until(inner, ':');
-      if (Type_ordinal.find(type_name) == Type_ordinal.end()) {
+      if (Type_ordinal.find(type_name) == Type_ordinal.end()
+          // types can contain integers, like for array sizes
+          && !is_integer(type_name)) {
 //?         cerr << type_name << " is " << Next_type_ordinal << '\n'; //? 1
         Type_ordinal[type_name] = Next_type_ordinal++;
       }