Posix vs. Windows

Mehrdad wfunction at hotmail.com
Fri May 18 09:50:35 PDT 2012


On Friday, 18 May 2012 at 16:37:31 UTC, Sean Kelly wrote:
> I'd say that Windows tends to do more for you, while Posix 
> provides lower-level APIs to accomplish the same thing.  So 
> Posix offers more control and is typically more robust as a 
> result.  There are a few exceptions however, like SEH has 
> proven to be far more capable than signals for certain classes 
> of error handling.
>
> If you're targeting Windows then use Windows APIs, if Posix 
> then Posix.  Windows does claim Posix support, but it's really 
> pretty terrible and Druntime doesn't have declarations for the 
> Posix Windows interface anyway.

Yeah...

The reason I asked was, I ended up calling a bunch of stuff 
manually (e.g. rt_moduleCtor), and when I looked at Phobos, I 
realized that's exactly what the Posix code already does. So I 
was thinking if I used Phobos with the Posix flag, it might be 
easier, but probably not...


More information about the Digitalmars-d mailing list