[Issue 11357] New: Weird behavior of appender with File as the element... do not know exactly where the bug resides.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 25 13:19:56 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11357

           Summary: Weird behavior of appender with File as the element...
                    do not know exactly where the bug resides.
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: maidenphil at hotmail.com


--- Comment #0 from Phil Lavoie <maidenphil at hotmail.com> 2013-10-25 13:19:55 PDT ---
So I just found some weird behavior while using std.array.Appender in
conjunction with std.stdio.File.

The attachment shows it best but, simply put:
auto app = appender!( File[] )();
foreach( i = 0; i < dontMatter; ++i ) {
  app.put( stdout );
}

Crashes. Of course, my real life needs did not include copying stdout, but
rather filling an array with files using the appender.

Phil

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


More information about the Digitalmars-d-bugs mailing list