lua-users home
lua-l archive

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


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