D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 16544 - Add File.reopen
Summary: Add File.reopen
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2016-09-26 14:36 UTC by Vladimir Panteleev
Modified: 2016-10-01 11:47 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Vladimir Panteleev 2016-09-26 14:36:48 UTC
The C freopen function allows changing the file modes of a currently open file. The function should be exposed via a std.stdio.File function as well.

http://www.cplusplus.com/reference/cstdio/freopen/
Comment 1 Vladimir Panteleev 2016-09-26 15:32:55 UTC
https://github.com/dlang/phobos/pull/4822
Comment 2 github-bugzilla 2016-09-30 13:04:32 UTC
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/d63572fd775920b8d78c263c95ac45f387c09ba6
Fix Issue 16544 - Add File.reopen

https://github.com/dlang/phobos/commit/59b6392f2067d841385abd37c9eba45d18eaf7b7
Merge pull request #4822 from CyberShadow/pull-20160926-152950

Fix Issue 16544 - Add File.reopen
Comment 3 github-bugzilla 2016-10-01 11:47:27 UTC
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/d63572fd775920b8d78c263c95ac45f387c09ba6
Fix Issue 16544 - Add File.reopen

https://github.com/dlang/phobos/commit/59b6392f2067d841385abd37c9eba45d18eaf7b7
Merge pull request #4822 from CyberShadow/pull-20160926-152950