Advertisement
Guest User

Untitled

a guest
May 17th, 2015
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. component = {
  2. type = function (address)
  3. if address == FS1 then return "filesystem"
  4. elseif address == SCREEN then return "screen"
  5. else
  6. print("unknown addr",address)
  7. end
  8. end
  9. }
  10. function component.proxy(address)
  11. print(debug.traceback())
  12. print(component.type)
  13. local type, reason = spcall(component.type, address)
  14. if not type then
  15. return nil, reason
  16. end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement