lua-users home
lua-l archive

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


>    table = { {"filename1.boo" , 10, 10, 20, 20 },
>              {"filename2.boo" , 10, 10, 20, 20 },
>              list_type = "image"
>            };

I'm not disputing that the restrictions on table construction seem a
little odd, but if your problem is restricted to this kind of example, 
how about:

    function image(table)
        table.list_type = "image"
        return table
    end
    
    image{
        {"filename1.boo" , 10, 10, 20, 20 },
        {"filename2.boo" , 10, 10, 20, 20 },
    }

Alan