I was fiddling with lua and was surprised that the good old

Code
manager:machine()

didn't work.

The new way is just

Code
manager.machine

It's a good change, it just threw me for a loop. manager:machine() had gotten so hardwired now 8-)


Code
function printt(t) for a,b in pairs(t) do print(a,b) end end
printt(manager.machine.devices)




Before you could do
Code
[MAME]> print(manager)
sol.mame_machine_manager*: 0x562753a745b8

[MAME]> print(manager:machine())
sol.running_machine*: 0x56275d580f78

[MAME]> print(manager:machine().devices)
table: 0x56275ed75fe0
[MAME]> 

and now when you ask it to print(manager.machine) it says something different:

[
Code
MAME]> print(manager)
sol.mame_machine_manager*: 0x55d389068d68

[MAME]> print(manager.machine)
Attempt to register save state entry after state registration is closed!
Module timer tag natural_keyboard::timer name m_param
Ignoring MAME exception: Attempt to register save state entry after state registration is closed!
Module timer tag natural_keyboard::timer name m_param

error: 	Attempt to register save state entry after state registration is closed!
Module timer tag natural_keyboard::timer name m_param

[MAME]> print(manager.machine.devices)
sol.lua_engine::devenum<device_enumerator>: 0x55d3959b9818