make Pid constructor public

Domain via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Apr 18 04:54:07 PDT 2017


On Monday, 17 June 2013 at 22:38:47 UTC, Timothee Cour wrote:
> 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

I know this is an old post, but I need this feature! Any plan to 
make this happen?


More information about the Digitalmars-d-learn mailing list