lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Tue, Oct 6, 2009 at 12:36 PM, steve donovan
<> wrote:

Sorry, one of those damn GMail shortcuts ...

OK, for the 2D case we just have a table of row tables

 function dim(n,m)
    local res = {}
    for i = 1,n do
       local row = {}
       res[i] = row
       for j = 1,m do
           row[j] = 0
   return res

So, no clever dostring tricks, and the result is returned directly.

steve d.