lua-users home
lua-l archive

RE: [ANN] Lua 5.3.0 (work2) now available

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


> Lua 5.3.0 (work2) is now available for testing at
> 	http://www.lua.org/work/lua-5.3.0-work2.tar.gz
> 
C:\Temp\lua-5.3.0-work2\src>lua
Lua 5.3.0 (work2) Copyright (C) 1994-2014 Lua.org, PUC-Rio
> 0x10 ~ 0x01 -- xor
17
> ~0x01 -- not
-2
> ~0x0e -- not
-15
>
I find it confusing that the operator '~' is used for both 'xor' and 'unary not'. I would rather see '!' as the 'unary not'.
I don't use them a lot, but are the last two results to be expected? (negative results?)
Thijs

AltStyle によって変換されたページ (->オリジナル) /