Proposal for std.path replacement

Rainer Schuetze r.sagitario at gmx.de
Sun Mar 6 07:41:17 PST 2011


Lars T. Kyllingstad wrote:
> On Sun, 06 Mar 2011 09:37:15 +0100, Rainer Schuetze wrote:
> 
>> What about "file."? I tried it on NTFS, but trailing '.' seems to always
>> be cut off. Is it possible to create such a file on unix systems? If
>> yes, you won't be able to recreate it from the result of basename() and
>> extension().
> 
> Good point.  I don't know if there is any kind of precedent here.  What 
> do others think?
> 

Maybe special casing similar to the "hidden" files starting with '.':

basename("file.") --> "file."
extension("file.") --> ""


More information about the Digitalmars-d mailing list