Stumbled apon a restriction in msg.post today. Wonder if it is by design as it is differs from “normal” lua table handling.
Ok, here it goes:
local a = { foo = 1 } -- string as key, ok to use local b = { [{}] = 2 } -- table as key, ok to use msg.post( ".", "any_mess", a ) -- ok msg.post( ".", "any_mess", b ) -- error, keys in table must be of type number or string
Is this because it’s sent into the C part and cannot be handled?