lua-users home
lua-l archive

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


> -----Original Message-----
> From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On
> Behalf Of Luiz Henrique de Figueiredo
> Sent: zondag 23 maart 2014 16:09
> To: Lua mailing list
> Subject: Re: [ANN] Lua 5.3.0 (work2) now available
> 
> > are the last two results to be expected? (negative results?)
> 
> Lua 5.3 has integers but not unsigned integers. If you want to see unsigned
> integers, try string.format("%x",~1).

Yes, figured that out by now. Just wondering what the consequences of this are for simple bitmask operations. I guess they require a final 'and' operation before emitting the results.

> ("%x"):format( ~0xf & 255)
f0
>

Thijs