[phobos] popen/pclose and bug 3157
Andrei Alexandrescu
andrei at erdani.com
Thu Sep 9 07:05:30 PDT 2010
On 9/9/10 6:43 CDT, Lars Tandle Kyllingstad wrote:
> I did consider it, but for completeness that would mean not just one,
> but two more forms of pipeProcess() and execute(). Example:
>
> // Already there:
> execute(command)
> execute(exe, args)
>
> // Add these?
> execute(command, env)
> execute(exe, args, env)
>
> It just seemed a bit too much for what I believed to be a rare need. If
> there is a real need for this, though, I don't have any problems with
> adding it.
How would people who do have such a need achieve it without the added
primitives? If they can't, probably you need to add them.
Perhaps you can consolidate the functions by using a default argument
for env.
Andrei
More information about the phobos
mailing list