lua-users home
lua-l archive

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


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.