lua-users home
lua-l archive

Re: Table assignments in varargs function call

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


On Tue 20 Nov, Peter Loveday wrote:
 
> a = xyzzy({ A = 1, B = 2})
> 
> But as these calls are for end-user (ie non-programmer) usage,
> I really want to reduce the confusion and clutter of the extra
> braces if possible.
Just leave out the parentheses:
 a = xyzzy { A = 1, B = 2}
Is that not good enough?
-- 
Gavin Wraith (gavin@wraith.u-net.com)
Home page: http://www.wraith.u-net.com/

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