https://issues.dlang.org/show_bug.cgi?id=4763
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |[email protected] Resolution|FIXED |--- --- Comment #2 from [email protected] --- (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 --
