daemon/engine: syntactic sugar for module ‘get’, ‘set’ properties
if the module declares such properties, they can be accessed by treating module as a table, e.g. hints[‘localhost’] = ‘127.0.0.1’ hints.hostname = ‘192.168.1.1. print(hints.localhost) equals to: hints.set(‘localhost 127.0.0.1’) hints.set(‘hostname 192.168.1.1’) print(hints.get(‘localhost’))
Please register or sign in to comment