diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-21 17:00:28 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-21 17:00:28 +0100 |
commit | 47ef63d725d7daa2562703e0179ebe4b15a705bc (patch) | |
tree | c94419fdcbb29b137fdd5ddd36b93c8bba9c219b /lib | |
parent | b5460017f1e88baf283ebfaad341cd094f5041ff (diff) | |
download | supple-47ef63d725d7daa2562703e0179ebe4b15a705bc.tar.gz |
SUPPLE.OBJECTS: Everything tested and managing of local and remote objects looks right
Diffstat (limited to 'lib')
-rw-r--r-- | lib/supple/objects.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/supple/objects.lua b/lib/supple/objects.lua index 67cb71b..6c28cae 100644 --- a/lib/supple/objects.lua +++ b/lib/supple/objects.lua @@ -96,9 +96,10 @@ local function receive(obj) obj.methods[#obj.methods+1] = "__newindex" end for _, name in ipairs(obj.methods or {}) do - mt[name] = function(...) - proc_call(tag, name, ...) - end + local function meta_func(...) + return proc_call(tag, name, ...) + end + mt[name] = meta_func end -- And return the proxy object return proxy @@ -108,4 +109,5 @@ return { set_name = set_name, set_proc_call = set_proc_call, give = give, + receive = receive, } |