Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local funcs = {}
- local met = {}
- local ind = {}
- local name = "repBit"
- local function er(func,inp,code)
- printError(name .. ":" .. tostring(func) .. ":" .. tostring(inp))
- if code then
- return "Exited with code " .. tostring(code)
- else
- return "Exited without code."
- end
- end
- met.__add = function(lhs,rhs)
- return lhs
- end
- met.__sub = function(lhs,rhs)
- return lhs
- end
- met.__div = function(lhs,rhs)
- return lhs
- end
- met.__mul = function(lhs,rhs)
- return lhs
- end
- funcs.new = function(tab)
- tab = tab or {
- false,false,false,false, false,false,false,false,
- false,false,false,false, false,false,false,false,
- false,false,false,false, false,false,false,false,
- false,false,false,false, false,false,false,false
- }
- for i = 1,32 do
- assert(type(tab[i]) == "boolean",er("new","table does not match specifications.",1))
- end
- setmetatable(tab,met)
- return tab
- end
- funcs.band = function(lhs,rhs)
- end
- return funcs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement