lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
[FUN] Codegolf: Lua 5.3-only program
From
: Egor Skriptunoff <egor.skriptunoff@
...
>
Date
: Sun, 13 Dec 2020 20:02:11 +0300
Hi!
The task: write a Lua program which runs only on Lua 5.3.
It should not run under other Lua versions (5.1, 5.2, 5.4, LuaJIT):
either a compile-time or a run-time error should occur.
For example, the following program is Lua 5.3-only and its length is 41 bytes:
if _VERSION~="Lua 5.3" then error("") end
This is a codegolf: the shortest Lua 5.3-only program wins.
Follow-Ups
:
Re: [FUN] Codegolf: Lua 5.3-only program
,
bel
Prev by Date:
Re: Lua (small optimizations)
Next by Date:
Re: [FUN] Codegolf: Lua 5.3-only program
Previous by thread:
Re: Collection of arguments on a function called with the C API
Next by thread:
Re: [FUN] Codegolf: Lua 5.3-only program
Index(es):
Date
Thread