lua-users home
lua-l archive

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


I wrote (in lua) a lua "linting" function that required them. I parse the byte-code of a compiled chunk. So I had to write some bit-field extraction helpers in C: argBFromInstruction(), etc.

--
Tim Gogolin

On Sep 20, 2006, at 3:06 PM, Roberto Ierusalimschy wrote:

Sam Roberts wrote:
Other than lua doesn't have the C boolean operators (&&, ||, !), which
I keep forgetting [...]

May I ask you (and others) why you need boolean operators in Lua? (This
is not a rhetorical question. I really want to know what uses boolean
operators may have in Lua.)

-- Roberto