lua-users home
lua-l archive

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


2014-03-25 21:22 GMT+02:00 Coda Highland <chighland@gmail.com>:

> The important thing is that algorithms implemented in other languages
> should be straightforwardly portable. Having an algorithm that needs
> changed for Lua and Lua alone is the violation of the principle of least
> surprise.

Since you still seem to ignore Perl, here it is.

$ perl
print(-1>>1)
9223372036854775807
$ lua53
Lua 5.3.0 (work2)  Copyright (C) 1994-2014 Lua.org, PUC-Rio
> print(-1>>1)
9223372036854775807