Re: The problem with or and false
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: The problem with or and false
- From: "Alexander Gladysh" <agladysh@...>
- Date: 2006年3月30日 18:18:09 +0400
> 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.