[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: value to string constant
- From: Coda Highland <chighland@...>
- Date: Fri, 20 Jul 2012 09:09:57 -0700
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