make Pid constructor public

Timothee Cour thelastmammoth at gmail.com
Mon Jun 17 15:38:34 PDT 2013


inside std.process it says:
// Pids are only meant to be constructed inside this module, so we make the
constructor private.
However, this makes a number of useful functions from std.process useless
unless the processes were created via one of std.process' functions.
Can we make std.process.Pid.this(int pid) public?

Use case:
int pid=...; //parse pid from call to 'ps au' for example
std.process.kill(pid);
std.process.wait(pid);
//etc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20130617/aa9cc183/attachment.html>


More information about the Digitalmars-d-learn mailing list