diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-08-14 16:58:59 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-08-14 16:58:59 -0700 |
commit | c6520d9694d3cee265833b9e857f5f693645caba (patch) | |
tree | 46b832bf1921d6f4687aab7a1ded3488c8ff8c5b /010vm.cc | |
parent | cc835be2510ecea40a2382014d2e943cddb4ec29 (diff) | |
download | mu-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 '010vm.cc')
-rw-r--r-- | 010vm.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/010vm.cc b/010vm.cc index 41a63e2c..c9bfaa5d 100644 --- a/010vm.cc +++ b/010vm.cc @@ -196,7 +196,9 @@ reagent::reagent(string s) :original_string(s), value(0), initialized(false) { name = properties.at(0).first; for (long long int i = 0; i < SIZE(properties.at(0).second); ++i) { string type = properties.at(0).second.at(i); - if (Type_ordinal.find(type) == Type_ordinal.end()) { + if (Type_ordinal.find(type) == Type_ordinal.end() + // types can contain integers, like for array sizes + && !is_integer(type)) { //? cerr << type << " is " << Next_type_ordinal << '\n'; //? 1 Type_ordinal[type] = Next_type_ordinal++; } |