VERSION = '0.1' -- make the module callable local mt = getmetatable(_M) if not mt then mt = {} setmetatable(_M, mt) end mt.__call = function(obj, ...) run() end function test () print('blunder registered') return true end local function main() id = bwin.create_window("hi", 10, 10, 500, 500) end local function quit() --bwin.destroy_all_windows() print('quitting') end function run() main() while bwin.process_events(0) do end quit() end