lua-users home
lua-l archive

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

I patched lua 5.4. it has new syntax for pure functions.

So if you want to experiment you may try it: (ps: pastebin replace \n
to \r\n so dos2unix need to fix it)
wget -O- | dos2unix >

Usage example:
fn=function(x) print(x) end -- normal function
fn=function(x,G) pure G.print(x) end -- pure function. with out access
to upvalues and globals

пт, 12 июл. 2019 г. в 00:16, Egor Skriptunoff <>:
> A new syntax:
>    with white-list-of-names do
>       ....
>    end