December 12, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9145

           Summary: File is not opened if 'File' constructor is called in
                    'with' statement expression
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: maximzms@gmail.com


--- Comment #0 from Maksim Zholudev <maximzms@gmail.com> 2012-12-12 03:54:44 PST ---
Code:
----------
import std.stdio;

void main()
{
    auto f = File("test.txt", "rt");
    with(f)
        stdout.writeln(isOpen);

    with(File("test.txt", "rt"))
        stdout.writeln(isOpen);
}
----------

Output for DMD v2.061, 64 bit (from GitHub):
----------
true
false
----------

Output for GDC-4.6:
----------
true
true
----------

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 08, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9145


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich@gmail.com
         Resolution|                            |DUPLICATE


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-08 14:08:31 PST ---
Same cause as Issue 8269.

*** This issue has been marked as a duplicate of issue 8269 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------