Bug 12142 – std.stdio should allow opening a Windows HANDLE
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-02-12T10:56:00Z
Last change time
2014-02-16T13:00:18Z
Keywords
pull
Assigned to
nobody
Creator
dlang-bugzilla
Comments
Comment #0 by dlang-bugzilla — 2014-02-12T10:56:33Z
Windows C libraries expose APIs that allow binding a HANDLE to a file descriptor (which can then be fdopen-ed to a FILE*, and wrapped into a std.stdio.File). This functionality is already used by std.process, but user code can also benefit from the ability to use HANDLEs (which can be pipes and other devices) using std.stdio. Respectively, there should be a way to obtain a HANDLE back from a File.
https://github.com/D-Programming-Language/phobos/pull/1888