All pastes #102201 Raw Edit

jesterKing

public lua v1 · immutable
#102201 ·published 2006-07-27 12:11 UTC
rendered paste body
VERSION = '0.1'-- make the module callablelocal mt = getmetatable(_M)if not mt then    mt = {}    setmetatable(_M, mt)endmt.__call = function(obj, ...)    run()endfunction test ()    print('blunder registered')    return trueendlocal function main()    id = bwin.create_window("hi", 10, 10, 500, 500)endlocal function quit()    --bwin.destroy_all_windows()    print('quitting')endfunction run()    main()    while bwin.process_events(0) do end    quit()end