lua-users home
lua-l archive

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



2. Exclusive or of Lua values x and y

    xor = not x == not y


I have read this one several times to be sure I am not missing something obvious.
For me, not x == not y computes the *negation* of the exclusive OR !

The formula should be:

xor := not x ~= not y


--
-- Patrick Rapin
-- coauthor of "Le guide de Lua et ses applications", D-BookeR