[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: New version of bitlib: variadic and, or and xor
- From: Reuben Thomas <rrt@...>
- Date: Mon, 26 Nov 2001 21:33:16 +0000
I've made a slight improvement to my bitlib library so that now band,
bor and bxor accept any number of arguments from one upwards. (In case
anyone's wondering, feeding any of these functions one argument makes
them act as the identity function).
This means that instead of writing the rather ugly:
bor(a, bor(b, c))
you can just write
bor(a, b, c)
which improves the look of long logical expressions.
Get it from the link on lua.org's tools page, or from
http://sc3d.org/rrt/ under Lua (be patient, there are currently a
couple of redirects; soon it'll be back to the normal one).
http://sc3d.org/rrt/ | Travail broadens the behind