[Issue 4763] Few possible changes on std.stdio.File
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Feb 22 14:47:00 PST 2016
https://issues.dlang.org/show_bug.cgi?id=4763
ag0aep6g at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |ag0aep6g at gmail.com
Resolution|FIXED |---
--- Comment #2 from ag0aep6g at gmail.com ---
(In reply to Andre from comment #1)
> Cleanup: issue is very old
>
> (if any of the proposed changes is still needed, file seperately)
Reopening. Age is not a reason to close issues.
A quick look suggests that the first point is still actual: `open` seems to do
exactly the same as destructing and constructing [1].
Regarding the second point, as Steven Schveighoffer explains in issue 4087,
comment 4, a struct declaration in another one does not make for context
pointers. So that point is invalid.
The suggested code change from the third point has apparently been done [1]. So
that is fixed.
So, what would be left to satisfy this enhancement request would be to
deprecate and subsequently remove std.stdio.File.open. We could of course
create a separate issue for that and close this one. I don't know if that buys
us anything, though.
[1]
https://github.com/D-Programming-Language/phobos/blob/972227d286d2d31b76b32f3bc819e9aa50b8cfb0/std/stdio.d#L472-L476
--
More information about the Digitalmars-d-bugs
mailing list