aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-09-26 13:05:28 -0700
committerBruce Hill <bruce@bruce-hill.com>2018-09-26 13:05:47 -0700
commitb43432e647fbb3bb76aa2836e3899d5e407c50f9 (patch)
tree640aee09e7dafbcca53c4792d3446c7f6265e004 /lib
parent692fae5416ce1f2702b599ffb27b2e3d2235eba7 (diff)
Fixed all syntax errors, got original (non-nomnom) tests passing.
Diffstat (limited to 'lib')
-rw-r--r--lib/object.nom2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/object.nom b/lib/object.nom
index 65da2a1..25ff644 100644
--- a/lib/object.nom
+++ b/lib/object.nom
@@ -80,9 +80,9 @@ compile [object %classname extends %parent %class_body] to:
Lua "\
..do
local class = {name=\(quote %classname.stub)}
+ class.__type = class.name
setmetatable(class, {
__index=\(%parent as lua expr),
- __type=class.name,
__tostring=function(cls) return cls.name end,
__call=function(cls, inst)
inst = setmetatable(inst or {}, cls)