From 63d8b1cd3f34b15bf86210b99209e8b57e7019bb Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 28 Sep 2018 22:15:06 -0700 Subject: Fully working, I think? (with a lot of shims) --- containers.moon | 2 ++ 1 file changed, 2 insertions(+) (limited to 'containers.moon') diff --git a/containers.moon b/containers.moon index 8a91241..0fb9271 100644 --- a/containers.moon +++ b/containers.moon @@ -87,6 +87,8 @@ _list_mt = __newindex: (k,v)=> assert type(k) == 'number', "List indices must be numbers" rawset(@, k, v) +_list_mt.__index.as_lua = _list_mt.as_lua +_list_mt.__index.as_nomsu = _list_mt.as_nomsu List = (t)-> setmetatable(t, _list_mt) -- cgit v1.2.3