]> git.e2factory.org Git - e2factory.git/commit
strict: change API to support fields with nil values
authorTobias Ulmer <tu@emlix.com>
Fri, 23 Nov 2012 17:44:28 +0000 (18:44 +0100)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:11 +0000 (19:07 +0100)
commitb47b9a55b316dcb6324f92bfd6ae01afb99766f1
tree027c04bca8ffb6c28cd2de2190950df9b957f445
parent4cb5d79fa82e0afbe2cbea64932105f45d9aba6f
strict: change API to support fields with nil values

Previously, locked tables could not contain members set to nil,
since Lua is a bit confused about setting something to nil versus it not
existing at all.

Also all members are renamed fields, since "member" is an OO concept,
but the strict module doesn't particularily deal with objects.

The documentation was also slightly improved.

strict.unlock is now implemented, but still untested.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/plugin.lua
generic/strict.lua
local/scm.lua