diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-09-26 13:05:28 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-09-26 13:05:47 -0700 |
| commit | b43432e647fbb3bb76aa2836e3899d5e407c50f9 (patch) | |
| tree | 640aee09e7dafbcca53c4792d3446c7f6265e004 /containers.moon | |
| parent | 692fae5416ce1f2702b599ffb27b2e3d2235eba7 (diff) | |
Fixed all syntax errors, got original (non-nomnom) tests passing.
Diffstat (limited to 'containers.moon')
| -rw-r--r-- | containers.moon | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/containers.moon b/containers.moon index 8a7d7fa..f8f678c 100644 --- a/containers.moon +++ b/containers.moon @@ -26,6 +26,7 @@ as_lua = => -- List and Dict classes to provide basic equality/tostring functionality for the tables -- used in Nomsu. This way, they retain a notion of whether they were originally lists or dicts. _list_mt = + __type: "List" __eq:equivalent -- Could consider adding a __newindex to enforce list-ness, but would hurt performance __tostring: => @@ -96,6 +97,7 @@ walk_items = (i)=> return i, Dict{key:k, value:v} _dict_mt = + __type: "Dict" __eq:equivalent __len:size __tostring: => |
