Skip to content

d-led/automatic-lua-property-tables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

automatic lua property tables

Build Status

a little excercise in creating missing table entries/properties automatically:

local autoprop = assert( require 'autoprop' )

local config = autoprop()

config.some.url = 'http://olivinelabs.com/busted'
config.some.number = 42
config.some.other.url = 'https://github.com/nrother/dynamiclua'

print(config.some.url, config.some.number, config.some.other.url)

http://olivinelabs.com/busted       42      https://github.com/nrother/dynamiclua

Other implementations: lua-users wiki: Automagic Tables

About

creating missing properties on the fly: config.some.url = '...'

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages