lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: A tricky way to determine Lua version
From
: Satoru Kawahara <s1311350@
...
>
Date
: Sat, 21 May 2016 16:23:31 +0900
How about?
local version = setmetatable({nil, [1] = "LuaJIT"}, {__index = {"Lua 5." .. string.dump(function()end):byte(5, 5) % 16}})[1]
On Sat, May 21, 2016 at 3:53 PM, Vadim A. Misbakh-Soloviov
<
lua-l@mva.name
>
wrote:
> Mine relies upon strings still having a metatable.
But lacks luajit ;)
--
wbr,
mva
--
Kawahara Satoru
College of Information Science
University of Tsukuba
References
:
A tricky way to determine Lua version
,
Egor Skriptunoff
Re: A tricky way to determine Lua version
,
Sean Conner
Re: A tricky way to determine Lua version
,
Vadim A. Misbakh-Soloviov
Prev by Date:
Re: A tricky way to determine Lua version
Next by Date:
Re: A tricky way to determine Lua version
Previous by thread:
Re: A tricky way to determine Lua version
Next by thread:
Re: A tricky way to determine Lua version
Index(es):
Date
Thread