[phobos] Removing std.stdio.File.popen()

Steve Schveighoffer schveiguy at yahoo.com
Mon Aug 16 04:38:29 PDT 2010


Yet another reason to get rid of FILE * dependency.  Any modern i/o library with 
opaque reference types uses methods which know how to close it.

-Steve




----- Original Message ----
> From: Lars Tandle Kyllingstad <lars at kyllingen.net>
> To: Phobos mailing list <phobos at puremagic.com>
> Sent: Mon, August 16, 2010 4:11:01 AM
> Subject: [phobos] Removing std.stdio.File.popen()
> 
> I just noticed that std.stdio.File.popen() is POSIX-only.  Taking  that
> into account, along with the fact that it is buggy (issue 3157),  does
> anyone mind if I remove it?
> 
> It's only used once in Phobos, namely  in std.process.shell(), which is
> easily implemented by using  core.sys.posix.stdio.popen() together with
> core.sys.posix.stdio.fdopen() and  std.stdio.File.wrapFile().
> 
> -Lars
> 
> _______________________________________________
> phobos  mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
> 


      


More information about the phobos mailing list