• Marek Vavruša's avatar
    daemon/engine: syntactic sugar for module ‘get’, ‘set’ properties · ae7b572d
    Marek Vavruša authored
    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’))
    ae7b572d
Name
Last commit
Last update
..
layer Loading commit data...
lua Loading commit data...
README.rst Loading commit data...
bindings.c Loading commit data...
bindings.h Loading commit data...
daemon.mk Loading commit data...
engine.c Loading commit data...
engine.h Loading commit data...
io.c Loading commit data...
io.h Loading commit data...
main.c Loading commit data...
network.c Loading commit data...
network.h Loading commit data...
worker.c Loading commit data...
worker.h Loading commit data...