Thread overview
[Bug 189] New: std.path enhancements
Jun 09, 2006
d-bugmail
Jun 09, 2006
d-bugmail
Re: std.path enhancements
Jun 09, 2006
Brad Roberts
Jun 10, 2006
d-bugmail
June 09, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=189

           Summary: std.path enhancements
           Product: D
           Version: 0.160
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: StefanLiebig@web.de


new method:
   char[] parent( char[] path, int up = 1 )
   returns the parent path name of the given path, up indicates the levels for
"walking up"

extended method:
   char[] join( char[] p1, char[] p2 )
   would really be cool if it could join "real" relative paths (p2) such as
"../sibling".

If helpfull I could provide a win specific implementation e.g. to be used as starting point.


-- 

June 09, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=189


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from bugzilla@digitalmars.com  2006-06-09 04:16 -------
The bug list is not a very good discussion forum about the merits or demerits of proposed enhancements.

If Brad (or anyone else) wants to set up a separate bugzilla system for enhancement requests, that would be fine and likely useful. But this one should be for bugs only.

Bugs are arbitrarily defined as:
1) doesn't work as documented
2) contradictory, missing, or obviously wrong documentation


-- 

June 09, 2006
(dropped the [bug 189] part of the subject so that it won't be archived in this bugzilla bug's history...)

On Fri, 9 Jun 2006, d-bugmail@puremagic.com wrote:

>              Status|NEW                         |RESOLVED
>          Resolution|                            |INVALID
> 
> ------- Comment #1 from bugzilla@digitalmars.com  2006-06-09 04:16 -------
> The bug list is not a very good discussion forum about the merits or demerits of proposed enhancements.
> 
> If Brad (or anyone else) wants to set up a separate bugzilla system for enhancement requests, that would be fine and likely useful. But this one should be for bugs only.
> 
> Bugs are arbitrarily defined as:
> 1) doesn't work as documented
> 2) contradictory, missing, or obviously wrong documentation

This is one thing I disagree with.  The priority 'enhancement' makes it very easy to filter search results to hide those.  If even more separation is desired I could setup another component or even another product to house them.  Many many projects use bugzilla rather successfully for tracking enhancement requests and the resulting discussions.

What's your reason for objecting to enhancements being in this bugzilla instance?  Is it ease of data inspection?  If so, I suspect your issues would be easy to work out with a little help understanding how to use it's search features.  If it's something else, let's discuss how to make it work out best for everyone.

Thoughts?

Later,
Brad
June 09, 2006
I thought getDirName() was "parent()" (except named like I expect it to be, and available in other runtime libraries.)  You'd just call it multiple times for higher "up" values - no?

-[Unknown]


> new method:
>    char[] parent( char[] path, int up = 1 )
>    returns the parent path name of the given path, up indicates the levels for
> "walking up"
> 
> extended method:
>    char[] join( char[] p1, char[] p2 )
>    would really be cool if it could join "real" relative paths (p2) such as
> "../sibling".
June 10, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=189





------- Comment #2 from StefanLiebig@web.de  2006-06-10 04:03 -------
Sorry!
I thought that "severity: enhancement" is just for that.
So, I will post it to the forum.


--