[phobos] RFC: std.path

Jose Armando Garcia jsancio at gmail.com
Sun Jun 12 08:41:13 PDT 2011


On Sun, Jun 12, 2011 at 12:15 PM, Lars Tandle Kyllingstad
<lars at kyllingen.net> wrote:
> On Sun, 2011-06-12 at 11:39 -0300, Jose Armando Garcia wrote:
>> On Wed, Jun 8, 2011 at 4:29 PM, Lars Tandle Kyllingstad
> These functions are from the old std.path, and I haven't made any
> changes to them in my version.
>
> - toAbsolute()
> - toCanonical()
>

In the comments where you say that it doesn't perform any IO you
should add these functions. Speaking of which can we add a template
called normalize (maybe you can come up with a better name) that does
what canonical does but doesn't make it absolute. E.g.:

version(windows) assert(normilize("dir/file") == "dir\\file");
version(windows) assert(normilize("dir/./file") == "dir\\file");
//etc


More information about the phobos mailing list