Next in Review Queue: The New std.path

Mafi mafi at example.org
Fri Jul 15 05:12:55 PDT 2011


Am 15.07.2011 10:22, schrieb Nick Sabalausky:
> "Andrej Mitrovic"<andrej.mitrovich at gmail.com>  wrote in message
> news:mailman.1654.1310690711.14074.digitalmars-d at puremagic.com...
>> All functions have nice names except fcmp, why the abbreviation?
>>
>> Is expandTilde supposed to work on Windows? I've never seen tilde used
>> there.
>
> The docs say that it does nothing on Windows: "For Windows, expandTilde()
> merely returns its argument inputPath."
>
> This is probably for the best because the Windows equivilent to "/home/user"
> can be one of a number of different locations depending on what exactly
> you're storing. If expandTilde did work on Windows, then no matter what it
> expanded to, it would be wrong at least half the time.
>
>

What about longname becoming longna~1 on dos/emulators etc. Expanding 
this back needs information about the actual state of the file system so 
I don't now if such a function belongs to std.path but a longname.png => 
longna~1.png belongs IMO to std.path .


More information about the Digitalmars-d mailing list