lua-users home
lua-l archive

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


On Thursday, July 16, 2015 05:52:30 PM Tim Hill wrote:
> You aren’t getting any run-time benefit, since the logic is just the same.

There is a small advantage with  `minimum <= ComputeThisValue() <= maximum` in 
that the VM can store the result in a temporary register for both compares. 
The same thing would require declaring a local for the value and occupying 
that register until the end of the scope.

-- 
tom <telliamed@whoopdedo.org>