[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Request for 5.4: adding [] as table creation syntax for Lua 6.0
 
- From: Luiz Henrique de Figueiredo <lhf@...>
 
- Date: Tue, 12 Jul 2016 17:36:26 -0300
 
> I think there was a huge missed opportunity here. [] actually looks like a
> table!
It was like that in Lua 1:
	a = @f[ 10, 20, 30]
was the same as
	t = { 10, 20, 30 }
	f(t)
	a = t
See
	https://www.lua.org/ftp/refman-1.1.ps.gz
	https://www.lua.org/semish94.html
	section "Data types and variables"