Python1320

Untitled

Nov 29th, 2010
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. local tbl = setmetatable({}, { --you can use setmetatable(tbl, {... for an already existing table
  2.     __tostring = function(v)
  3.         return string.Implode(" ", v)
  4.     end,
  5. })
  6.  
  7. tbl[1] = "noo"
  8. tbl[2] = "yjaisd"
  9.  
  10. print(tbl)
  11. print("\n")
  12. print(tbl[1])
  13. print(tbl[2])
Add Comment
Please, Sign In to add comment