On 07/08/14 20:20, Andrei Alexandrescu wrote:
On 8/7/14, 11:03 AM, Lars Tandle Kyllingstad via phobos wrote:

[Extremely convincing arguments omitted]

Well I guess that's acceptable. Thanks. -- Andrei

Awesome! :)

Next order of business: Improving the exec* API. The following is an excerpt from the documentation:

    int execv(in string pathname, in string[] argv);
    [...]
    Typically, the first element of argv is the command being executed,
    i.e. argv[0] == pathname.
    [...]
    Returns -1 on failure with no indication of the underlying error.

I find this extremely unsatisfying. First of all, there is really no need to repeat pathname in argv, and secondly, the functions could easily throw an exception with an informational error message based on errno.

I suggest deprecating these functions on POSIX too, and creating new, POSIX-only functions with equivalent functionality but an improved API.

Thoughts?  Is it worth it?

Lars
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to