lua-users home
lua-l archive

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


On Mon, Apr 20, 2009 at 5:38 AM, Michael Bauroth
<Michael.Bauroth@falcom.de> wrote:
>    for _, attribute in pairs( attributes ) do
>      cb( name, attribute, attributes[ attribute ] )
>    end

i think here's your problem, the attributes table uses the 'array' and
'map' parts of the table for different purposes, but using
pairs(attributes) you iterate over all of them.  change to ipairs() to
read the attribute names in order.


-- 
Javier