Unexpected behaviour
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Unexpected behaviour
- From: Tim Channon <tc@...>
- Date: 2008年10月02日 14:10:09 +0100
Where does argument 3 go?
tagclass = {}
tagmetatable = {__index = tagclass}
function tagclass.new (kind, args, body)
local self = {}
self.kind=kind
self.args=args
self.body=body
setmetatable(self,tagmetatable)
return self
end
function tagclass:show()
print("kind",self.kind)
print("args",self.args)
print("body",self.body)
end
xx=tagclass:new("kindp", "argp", "bodyp")
xx:show()
kind table: 00887f48
args kindp
body argp