make maps oop

This commit is contained in:
2023-04-08 15:34:15 +02:00
parent d1cd747e86
commit 644a78154e
33 changed files with 709 additions and 276 deletions

View File

@@ -19,7 +19,13 @@ func typeof(val any) string {
case builtinFunc:
return "function"
case ArObject:
return x.TYPE
if val, ok := x.obj["__name__"]; ok {
val := ArValidToAny(val)
if val, ok := val.(string); ok {
return val
}
}
return "object"
case accessVariable:
return "variable"
}