lua-users home
lua-l archive

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


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" }