Path as an object in std.path

Dylan Knutson tcdknutson at gmail.com
Wed Jun 5 15:25:28 PDT 2013


On Wednesday, 5 June 2013 at 22:06:52 UTC, Vladimir Panteleev 
wrote:
> On Wednesday, 5 June 2013 at 06:27:46 UTC, Dylan Knutson wrote:
>> Hello,
>> I'd like to open up the idea of Path being an object in 
>> std.path. I've submitted a pull 
>> (https://github.com/D-Programming-Language/phobos/pull/1333) 
>> that adds a Path struct to std.path, "which exposes a much 
>> more palatable interface to path string manipulation".
>
> For the record, there are some existing D path object 
> implementations:
>
> * Tango's FilePath class:
>   
> https://github.com/SiegeLord/Tango-D2/blob/d2port/tango/io/FilePath.d
>
> * Vibe's Path struct:
>   
> https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/inet/path.d

The design of Path was prompted by Dub's own internal path 
module, might I add. And if anything, this just goes to show that 
a Path object indeed does have its use cases.


More information about the Digitalmars-d mailing list