lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> You can define a placeholder for false...
>
> local FALSE = {}
>
> then use FALSE for false, and substitute to<->from where required.
>
> ie
> set:
> t[k] = (v == false) and FALSE or v
> get:
> return (t[k] ~= FALSE) and t[k]

Unfortunately, I need to have all tables in "honest" state, so such
joined usage would be completely transparent for their other users.

Thanks,
Alexander.