[phobos] Platform consistency of std.file

David Simcha dsimcha at gmail.com
Thu May 27 05:27:38 PDT 2010


IMHO, since the whole point of std.file is to wrap OS-specific APIs in 
something OS-agnostic, the results of std.file.copy() should be as 
consistent as possible across OS's.  If you want to rely on the behavior 
of a specific platform, then you should use that platform's API directly.

On 5/27/2010 3:31 AM, Lars Tandle Kyllingstad wrote:
> Quick question:  Should the functions in std.file have a common "Phobos
> behaviour" across platforms, or should they have the default/expected
> behaviour for each platform?
>
> Example:
> std.file.copy() for Windows uses the Windows API, and thus I assume it
> behaves in the way Windows users expect.  On POSIX, however, it uses a
> home-brewed implementation, which does not behave completely like the
> 'cp' command.  (See bug 3862, which is what got me thinking about this.)
>
> -Lars
>
>
>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
>
>    



More information about the phobos mailing list