Closed makspll closed 2 years ago
is this intended?
No, it's just not implemented! Patches are definitely welcome!
I just committed some initial support! For now, only functions as __index
are handled and it only resolves __index
when using t[x]
(not with t.k
or t:k
). But it should address these "vector-like" use-cases already.
that's perfect, thank you!
Having a custom __index metamethod:
does not allow me to index my type with integers,
is this intended? It's very much annoying to work around