[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Reading a conf file
- From: Russell Haley <russ.haley@...>
- Date: Thu, 29 Sep 2016 08:44:04 -0700
Ha ha. My copy of PIL hasn't arrived yet so I didn't catch that when I looked online.
Sent from my BlackBerry 10 smartphone on the Virgin Mobile network.
Sent: Thursday, September 29, 2016 8:27 AM
To: Lua mailing list
Reply To: Lua mailing list
Subject: Re: Reading a conf file
Russell Haley wrote:
> Hi Valentin,
> I was unable to make this work at all. I kept getting "attempt to call
> a nil value (global 'loadstring')" which PIL online tells me is normal
> for a syntax error.
I should have mentioned that my code was meant for Lua 5.1. In Lua 5.1.
it works perfectly with your sample conf file (an no, the extra ","
doesn't hurt and doesn't need to be removed).
For Lua 5.2 and Lua 5.3. you simply have to replace 'loadstring' with