lua-users home
lua-l archive

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


Hi,

The code in question is:
function test_methods(sock, methods)
-    for _, v in methods do
+    for _, v in pairs(methods)
       if type(sock[v]) ~= "function" then
           fail(sock.class .. " method '" .. v .. "' not registered")
       end
   end
   pass(sock.class .. " methods are ok")
end

This is something that stopped working on Lua 5.1. Used to
work on Lua 5.0.

Regards,
Diego.