denilsonsa

Untitled

Apr 9th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.18 KB | None | 0 0
  1. t = setmetatable({}, { __tostring = function() return "foo" end })
  2. print(t)
  3. print(tostring(t))
  4.  
  5. f = { __tostring = function() return "foo" end }
  6. print(f)
  7. print(tostring(f))
Advertisement
Add Comment
Please, Sign In to add comment