Jump to content

2.2 overridden native Lua function "table.concat"


Rinart73

Recommended Posts

2.2 overriden native Lua function table.concat: Avorion\data\scripts\lib\utility.lua

function table.concat(tbl, add)
    for _, value in pairs(add) do
        table.insert(tbl, value)
    end
end

I ask you to change the function name because nativeĀ table.concat ( http://lua-users.org/wiki/TableLibraryTutorial ) works in a completely different way. Your change breaks all mods that use this function and also confuses future modders who will expect native functions to behave in a same way.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...