Re: buildPath() and absolute paths

2013-07-28 Thread Vladimir Panteleev
On Sunday, 28 July 2013 at 21:09:55 UTC, Lars T. Kyllingstad wrote: Currently, std.path.buildPath() is designed so that if one of the path segments is rooted, then the preceding segments are simply dropped. That is, assert(buildPath("foo", "bar", "/baz") == "/baz"); The only reason I wrote

Re: buildPath() and absolute paths

2013-07-28 Thread Jonathan M Davis
On Sunday, July 28, 2013 23:09:53 Lars T. Kyllingstad wrote: > Currently, std.path.buildPath() is designed so that if one of the path > segments is rooted, then the preceding segments are simply dropped. > That is, > > assert(buildPath("foo", "bar", "/baz") == "/baz"); > > The only reason I w

buildPath() and absolute paths

2013-07-28 Thread Lars T. Kyllingstad
Currently, std.path.buildPath() is designed so that if one of the path segments is rooted, then the preceding segments are simply dropped. That is, assert(buildPath("foo", "bar", "/baz") == "/baz"); The only reason I wrote it like this is that this was how the old (now deprecated and remov