[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: and and && and or and II
- From: David Jones <drj@...>
- Date: Thu, 21 Sep 2006 18:28:05 +0100
Not a lot of people may know this, but Lua addicts who like to use
'and' and 'or' (hey, Lua and Python have got even me used to them)
can freak out their C colleagues by #including <iso646.h> (defined in
Normative Amendment 1, ie ISO 9899:1995 and later) and then you can
use 'and' and 'or' in your C code.
So Lua _does_ use C syntax for its shortcut logical operators.