refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-25 01:32:55 +02:00
parent a4e3068557
commit 9adbe7f2ca
11 changed files with 53 additions and 43 deletions
+7 -4
View File
@@ -6,9 +6,12 @@ mutable.threads = t
do
local thread_id
public.thread_id()
function accessor() return thread_id end
function mutator(value) thread_id = value end
public.thread_id
{
get = function() return thread_id end,
set = function(value) thread_id = value end,
}
end
function LOAD()
@@ -50,7 +53,7 @@ end
do
local id = 0
function accessor.id() id = id + 1; return id end
function property.id.get() id = id + 1; return id end
end
function public.kill_listener(listener_id)