Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "coxpcall"
- local _lib
- if package.loaded.core then
- _lib = true
- else
- _lib = false
- require "core"
- end
- _exports = {}
- local _main = function()
- local object = object
- local array = array
- local number = number
- local string = base_string
- local exception = exception
- local hash = hash
- local regex = regex
- local _self = object
- local _type = type
- local _error = error
- local _tostring = tostring
- local brat_function = brat_function
- local _lifted_call = _lifted_call
- local _rawget = rawget
- local _table = table
- local _lifted = {}
- setfenv(1, {})
- local _temp1
- local _temp2 = string:new("Hello, World!")
- if p then
- _temp1 = p(_self, _temp2)
- else
- if _type(_self) == 'number' then
- _self = number:new(_self)
- elseif object._is_callable(_self) then
- _self = brat_function:new(_self)
- end
- local _m = _self.p
- if object._is_callable(_m) then
- _temp1 = _m(_self, _temp2)
- elseif _m ~= nil then
- _error(exception:argument_error('function', 0, 0))
- elseif _self.no_undermethod then
- _temp1 = _self:no_undermethod(string:new('p'), _temp2)
- else
- _error(exception:method_error(_self, 'p'))
- end
- end
- end
- local _result = coxpcall(_main, exception._handler)
- if not _lib then
- if not _result then
- os.exit(-1)
- else
- os.exit(0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement