[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Running Lua script file from Lua Console
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 9 Sep 2009 13:24:36 +0200
On Wed, Sep 9, 2009 at 12:07 PM, Rob Kendrick<lua-l@nun.org.uk> wrote:
> Sorry? There is nothing wrong with C's escape sequences if you use the
> directory separator of the OS it was designed for use with :)
Hehe, it really is Grumpy Week on the Lua list ;)
Best approach: define some functions like join() etc which do the
Right Thing. Respect package.config:sub(1,1), which gives the
directory delimiter on the platform. join(dir,file) is not also more
general than dir..'/'..file but more self-documenting.