Why system messages do not allow to pass parameters with them?

When I send:

msg.post(target, "enable", { test = 101 })

I get empty message table.
It sometimes useful to pass additional info with such messages.

It’s because some names are reserved (i.e. defined in side the engine), and as such, we parse those messages with specific code. And, as you see in the documentation, the enable message doesn’t support a table, but for instance render.clear_color does.

Related forum post

1 Like