segfaults

Ellery Newcomer ellery-newcomer at utulsa.edu
Tue May 4 08:07:49 PDT 2010


On 05/04/2010 09:51 AM, Graham Fawcett wrote:
>
> Thanks for posting this. Just curious -- why did you choose to model PID
> as a tuple instead of a struct? I'm not clear on what the tradeoffs are.
>
> Best,
> Graham

according to core.sys.posix.sys.wait, this is only valid for linux, grrr.

I don't think there is a difference, as a tuple is a glorified struct.

You just have to remember to use t.field instead of t.tupleof when 
iterating the elements in a foreach.

Mostly, I just love one liners.


More information about the Digitalmars-d-learn mailing list