www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16351] New: Nonstandard output library causes no-argument


          Issue ID: 16351
           Summary: Nonstandard output library causes no-argument
                    writeln() to fail.
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: andrew.benton675 gmail.com

Created attachment 1605
  --> https://issues.dlang.org/attachment.cgi?id=1605&action=edit

When using nonstandard output libraries such as
https://github.com/sickill/stderred argumentless writeln() will fail on the
enforce because it checks specifically for a new line to be returned.  The
error is resolved by following documentation for fputc and checking that output
is not EOF, which indicates an error.

Aug 03 2016