https://issues.dlang.org/show_bug.cgi?id=9661

Justin Whear <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Justin Whear <[email protected]> ---
+1  I spent an hour in frustration because of a line like this:

auto buf = File("somefile", "w").lockingTextWriter();

Because the File is temporary, it immediately closes and leaves you with a
LockingTextWriter with a bad handle.  Since the whole point of wrapping FILE*
with File is to manage its lifetime, lockingTextWriter really needs to
increment and decrement the ref count.

--

Reply via email to