[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Varargs and table construction cause strange behaviour
- From: "King, Mike" <MKing@...>
- Date: Tue, 6 Apr 2010 15:41:51 -0400
> I am working with a function that returns a vararg and using those returns to
> construct a table. While I was working on this I found a behavior I was not
> expecting. I have created a simple example to demonstrate the behaviour
> (see below). I expected the table to constructed with all the varargs plus
> the "flag", but it only takes the first vararg and the "flag" key/value pair.
> I bet Lua has a special helper syntax to allow simple table constructions using
> only varargs, but I cant seem to find the documentation on this subject. Can
> anyone confirm this behaviour is sane and documented?
Checkout: http://www.lua.org/pil/5.1.html
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is confidential or proprietary to K&L Microwave, Inc. Any unauthorized review, use, disclosure or distribution is prohibited.
If this communication has been transmitted from a U.S. location it may also contain data subject to the International Traffic in Arms Regulations or U.S. Export Administration Regulations and, if so, cannot be disseminated, distributed or copied to foreign nationals, residing in the U.S. or abroad, without the prior approval of the U.S. Department of State or appropriate export licensing authority. If you have received this communication in error, please notify the sender by reply e-mail and delete or destroy all copies of this e-mail message and/or any file attachment(s).