equal
deleted
inserted
replaced
|
1 -- Prosody IM |
|
2 -- Copyright (C) 2008-2009 Matthew Wild |
|
3 -- Copyright (C) 2008-2009 Waqas Hussain |
|
4 -- |
|
5 -- This project is MIT/X11 licensed. Please see the |
|
6 -- COPYING file in the source package for more information. |
|
7 -- |
|
8 |
1 local array = {}; |
9 local array = {}; |
2 |
10 |
3 local array_mt = { __index = array, __tostring = function (array) return array:concat(", "); end }; |
11 local array_mt = { __index = array, __tostring = function (array) return array:concat(", "); end }; |
4 local function new_array(_, t) |
12 local function new_array(_, t) |
5 return setmetatable(t or {}, array_mt); |
13 return setmetatable(t or {}, array_mt); |