diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-07-01 11:43:18 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-07-01 11:43:18 -0400 |
| commit | 0c15c74352b64ab5e790802bad84ded18c875c65 (patch) | |
| tree | ece6a22645cd8686deb8c88a0996b3146a387869 /environment.c | |
| parent | 855a7d2ec120591a1995b7cc89c0ea5a4c42d75f (diff) | |
Clean up some type checking with math operations and metamethods
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/environment.c b/environment.c index dcd852e3..b239dd3c 100644 --- a/environment.c +++ b/environment.c @@ -364,12 +364,8 @@ binding_t *get_namespace_binding(env_t *env, ast_t *self, const char *name) code_err(self, "I couldn't get this type"); type_t *cls_type = value_type(self_type); switch (cls_type->tag) { - case ArrayType: { - errx(1, "Array methods not implemented"); - } - case TableType: { - errx(1, "Table methods not implemented"); - } + case ArrayType: return NULL; + case TableType: return NULL; case BoolType: case IntType: case NumType: { binding_t *b = get_binding(env, CORD_to_const_char_star(type_to_cord(cls_type))); assert(b); |
