lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: Why don't bools have (some) bitwise operators?
From
: Sudipto Mallick <smallick.dev@
...
>
Date
: Tue, 23 Feb 2021 22:57:06 +0530
Look at the following:
X 0 0 1 1
Y 0 1 0 1
X xor Y 0 1 1 0
X ~= Y 0 1 1 0
So in all cases, X xor Y is equivalent to X ~= Y given that X, Y are boolean. Hope that helps.
~smlckz
Follow-Ups
:
Re: Why don't bools have (some) bitwise operators?
,
Sean Conner
References
:
Why don't bools have (some) bitwise operators?
,
Soni "They/Them" L.
Re: Why don't bools have (some) bitwise operators?
,
Gavin Wraith
Prev by Date:
Re: Why don't bools have (some) bitwise operators?
Next by Date:
Re: Why don't bools have (some) bitwise operators?
Previous by thread:
Re: Why don't bools have (some) bitwise operators?
Next by thread:
Re: Why don't bools have (some) bitwise operators?
Index(es):
Date
Thread