<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:12pt">I have a fully compiling Windows version ready to test, but issue 3979 blocks that. I didn't have the patience that Lars had to build it outside of phobos, so I just put it on hold for now :) But yes, everything that std.process supports will be doable on both phobos and Windows with a common interface. There will be one minor difference -- Windows has a GUI flag that prevents a console window from appearing. This is important to people who are running programs they don't want to pop up temporary console windows.<br><br>This flag simply won't be defined in POSIX.<br><br>-Steve<br><div><br></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"><br><div
style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><b><span style="font-weight: bold;">From:</span></b> David Simcha <dsimcha@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> Discuss the phobos library for D <phobos@puremagic.com><br><b><span style="font-weight: bold;">Sent:</span></b> Mon, August 16, 2010 10:11:40 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [phobos] Removing std.stdio.File.popen()<br></font><br>
<meta http-equiv="x-dns-prefetch-control" content="off">This looks terrific. I've always found the old std.process to be way underpowered, especially on Windows. Does your statement about cross-platformness imply that Windows will eventually be supported, too?<br><br><div class="gmail_quote">
On Mon, Aug 16, 2010 at 9:20 AM, Lars Tandle Kyllingstad <span dir="ltr"><<a rel="nofollow" ymailto="mailto:lars@kyllingen.net" target="_blank" href="mailto:lars@kyllingen.net">lars@kyllingen.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Mon, 2010-08-16 at 09:04 -0400, Adam Ruppe wrote:<br>
> I actually use it (which is why I duplicated your bug), but am OK with<br>
> removing it, since it is easy enough to get at anyway. For a while, I<br>
> did a separate extern(C) for pclose anyway!<br>
><br>
> However, I don't think something being POSIX only is a good reason to<br>
> remove something. D should take advantages of whatever platform it is<br>
> on. Portability is good when you can have it, but it shouldn't be a<br>
> function killer alone.<br>
<br>
</div>Two comments:<br>
<br>
1. I disagree with you. :) I think that Phobos' user-visible interface<br>
should be completely platform agnostic. Code that depends only on<br>
Phobos should compile and run on any platform.<br>
<br>
2. Steve and I have been working on a new version of std.process, which<br>
will at some point, hopefully, obviate the need for popen(). See<br>
pipeProcess() here:<br>
<br><span>
<a target="_blank" href="http://www.kyllingen.net/code/ltk/doc/process.html">http://www.kyllingen.net/code/ltk/doc/process.html</a></span><br>
<br>
The POSIX implementation is more or less complete, but its inclusion in<br>
Phobos is currently being blocked by bug 3979. Also, Steve has run into<br>
some very tricky issues with pipes on Windows, fundamentally caused by<br>
D's dependence on the DMC runtime. I don't know how (or if) that is<br>
working out.<br>
<font color="#888888"><br>
-Lars<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
phobos mailing list<br>
<a rel="nofollow" ymailto="mailto:phobos@puremagic.com" target="_blank" href="mailto:phobos@puremagic.com">phobos@puremagic.com</a><br><span>
<a target="_blank" href="http://lists.puremagic.com/mailman/listinfo/phobos">http://lists.puremagic.com/mailman/listinfo/phobos</a></span><br>
</div></div></blockquote></div><br>
<meta http-equiv="x-dns-prefetch-control" content="on"></div></div></blockquote>
</div><br>
</body></html>