www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5031] New: pragma(msg,...) outputs to stderr, not stdout

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5031

           Summary: pragma(msg,...) outputs to stderr, not stdout
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: cbkbbejeap mailinator.com



17:36:53 PDT ---
pragma(msg,...) messages are not inherently errors, so it should output to
stdout, not stderr. But currently it outputs to stderr:

-------------
 type test.d
pragma(msg, "hello");
 dmd -c test.d > out.txt
hello
 type out.txt
 dmd -c test.d 2> out.txt
 type out.txt
hello ------------- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 09 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5031


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |INVALID



14:00:44 PST ---
Their normal usage is to provide user-friendly error messages, so they should
got to stderr.

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