some tweaks and todos

This commit is contained in:
Irmen de Jong
2024-06-25 23:07:35 +02:00
parent a97edef380
commit 4f8aaf9244
9 changed files with 45 additions and 20 deletions

View File

@@ -222,7 +222,7 @@ class StMemVar(name: String,
init{
require(dt!=DataType.BOOL && dt!=DataType.ARRAY_BOOL)
if(dt in ArrayDatatypes || dt == DataType.STR)
require(length!=null) { "memory mapped array or string must have known length" }
requireNotNull(length)
}
}