lua-users home
lua-l archive

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


On 26 February 2011 23:31, David Manura <dm.lua@math2.org> wrote:
> 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?

Quite so. Silly me, I'll fix that for the next release.

>> 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).

I do, because I have the temerity to call my libraries "stdlib". I'm
trying to provide some comfortable extensions to the standard APIs. (I
think so few people use them that no-one has complained.)

I didn't have a package_ext module, but that's obviously the right
thing to do, as you say.

-- 
http://rrt.sc3d.org