Automatic Lua Properties

Automatic Lua Properties?

Starting with an example using the Lua specification and testing framework Busted:

Here is a little exercise in Lua metaprogramming.

Code

https://github.com/d-led/automatic-lua-property-tables

Spec: autoprop_spec.lua
Implementation: autoprop.lua

P.S. Other implementations: lua-users wiki: Automagic Tables

2 thoughts on “Automatic Lua Properties

    1. DLed Post author

      Thanks! Very glad you found it useful! After I wrote it I’ve found some others, but it’s been a good little exercise

      Reply

Leave a Reply