[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Integer division
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 14 Nov 2012 11:37:51 -0200
> A real integer type and adding //, would pave the way for bitwise operators <<, >>, | and &
> (don't know what to do about ^ because it's already in use). This would make Lua a better fit for those applications that rely on bit crunching operations.
>
> May I ask what is the opinion of Roberto regarding these new operators?
I think we always stated that the main problem with bitwise operators
in Lua was that they do not have a "natural" interpretation over Lua
numbers. If Lua gets integers, this problem is gone.
-- Roberto