lua-users home
lua-l archive

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


> On Jul 16, 2015, at 8:20 PM, Tom N Harris <whoopdedo@whoopdedo.org> wrote:
> 
> 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>
> 

But is that small advantage worth the extra complexity in the language?