std.path review: final version(?)

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Sat Aug 13 02:32:05 PDT 2011


On Fri, 12 Aug 2011 10:14:11 +0200, Rainer Schuetze wrote:

> I like how std.path has turned out. Thanks, Lars.
> 
> Two minor issues while skipping through the source (I've been on
> vacation, and it took some time to catch up, so I'm not sure these have
> already been discussed):
> 
> - C[] baseName(C, C1)(C[] path, C1[] suffix) does not respect the case
> sensitivity of the OS with respect to suffix, I think it should.

Good point.  I'll fix.


> - string absolutePath(string path, string base) returns an empty string
> if path is empty. I would have expected that the base directory is
> returned, so that you'll always get a sensible path.

I'll consider it, but I think I agree with Jonathan on this one.

-Lars


More information about the Digitalmars-d mailing list