Summary: Reopen a file
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from bioinfornatics <> 2012-03-07 
09:09:05 PST ---
when you want to reopen a closed file from a File instance the programm
segfault, i.e above code

import std.stdio;
import std.string;

void main(){
    File f = File("text.txt", "w");
    f.writeln( "blah" );
    if( ! f.isOpen )
        f = File(, "a+" );
    f.writeln( "blah" );

this tniny code segfault because when you close a file you can't after get the
filer name closed by using

it will really helpfull to know at any moment the name from a File instance.
And method isOpen will get more sense to use. Because currently it said if
isopen or not but can't do many thing in more.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to