lua-users home
lua-l archive

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


On Sat, Feb 26, 2011 at 6:22 PM, Reuben Thomas <rrt@sc3d.org> wrote:
> local _
> _, _, dirsep, pathsep, path_mark, execdir, igmark =
>  string.find (package.config,
> "^([^\n]+)\n([^\n]+)\n([^\n]+)\n([^\n]+)\n([^\n]+)")

Why not string.match?

> io.dirsep, io.pathsep, io.path_mark, io.execdir, io.igmark

Arguably, these are better placed in package than in io (if one
modifies standard packages at all).