[Issue 10328] std.stdio.write doesn't throw on failure
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Jun 11 10:29:28 PDT 2013
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=10328
Steven Schveighoffer <schveiguy at yahoo.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |schveiguy at yahoo.com
         Resolution|                            |INVALID
--- Comment #2 from Steven Schveighoffer <schveiguy at yahoo.com> 2013-06-11 10:29:26 PDT ---
This is intended behavior.  std.stdio.stdout is buffered, and the lines in your
code have not attempted to write to the file descriptor yet.
If you add:
std.stdio.stdout.flush();
then it fails with an exception as expected.  Note that C (and by using C's
stdio as it's base, D also) decides whether to flush after newline depending on
whether the file descriptor is a console or not.
-- 
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