lua-users home
lua-l archive

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


* Reuben Thomas <rrt@sc3d.org>:

>> Has anyone written a function to perform a bitwise XOR between two
>> values? I looked in the documentation (I need it to work in 4.0) and
>> Google'd for it, but didn't find anything.
> 
> My bitlib does that. See my web pages (URL below) under Lua or google for
> bitlib.

Thanks!  However, it would be ideal if I didn't have to (re)compile
anything, as the code that uses the function needs to be portable, and some
of the target platforms don't have compilers available.  Is there a way to
implement it in "pure" Lua?

-- 
Benjamin D. Esham      {      http://bdesham.net
bdesham@iname.com      }      AIM: s c e s a r 1
http://tuxedo.org/~esr/faqs/smart-questions.html