[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bitwsie operators in Lua
- From: Lisa Parratt <lisa@...>
- Date: Mon, 19 Jun 2006 11:59:12 +0100
David Jones wrote:
Treating an int as 32 bits indexed from 0-31 is just an optimised
representation of a table. Let's not elevate that optimisation to the
status of discrete mathematics. Personally I find that about half the
time when I want to use bitfields I end up overflowing the 32-bit
ceiling anyway (in C this is), so you have to use non-basic types anyway.
Please be explaining to me how you can do discrete mathematics in stock
Lua without such operators, without requiring one of those academic
theoretical computers with infinite CPU power and memory? Either you're
being a pedant for the sake of it, or so intensely impractical I
question why I bother.
--
Lisa