lua-users home
lua-l archive

Re: [PROPOSAL] multiple keys/values with function metamethod

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


2015年09月12日 18:58 GMT+02:00 Rodrigo Azevedo <rodrigoams@gmail.com>:
> t1[a,b,c] = 1,2,3
> equals
> t1[a],t1[b],t1[c] = 1,2,3
> For this case. This is NOT syntactic sugar (see below).
If you can write exactly equivalent Lua code, it is syntactic sugar.
It is not a swearword, several things in Lua are syntactic sugar,

AltStyle によって変換されたページ (->オリジナル) /