Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

print(table) example + add to API ___metamethods

edited August 2017 in General Posts: 109

I had been a bit confused everytime I would go to print a table and get a hex value and there is no place I could track down with what to do about that. Today I figured out what to do.

This is an important thing to have in Lua based IDE meant to be easily usable.
Tables are the core of Lua and printing to the console is the only way to start debugging and understanding things.

I strongly believe this should be added as a standard meta method for print(table):

function tablePrint(t)
    if t ~= nil then
        for k,v in pairs(t) do
            if type(v) == 'table' then
Sign In or Register to comment.