lua-users home
lua-l archive

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


On Thu, Jul 19, 2012 at 10:00 PM, Daurnimator <quae@daurnimator.com> wrote:
> On 20 July 2012 14:11, Coda Highland <chighland@gmail.com> wrote:
>> You're close but you don't have your table constructor right. Try
>> baudrate = { 115200 = "rs232.RS232_BAUD_115200" }
>>
>> Then baudrate[115200] will return the appropriate string.
>>
>> /s/ Adam
>>
>
> You're close but you don't have your table constructor right. Try
> baudrate = { [115200] = "rs232.RS232_BAUD_115200" }
>

Argh. XD JSON bites me again. Thanks.

/s/ Adam