www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 367] New: Bad ddoc comments in std.stream

reply d-bugmail puremagic.com writes:

           Summary: Bad ddoc comments in std.stream
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ddoc, spec
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: chris dprogramming.com

std.stream line 389:

  protected bool readEOF = false; /// Indicates whether this stream is at eof
                                 /// after the last read attempt.

  protected bool prevCr = false; /// For a non-seekable stream indicates that
                                /// the last readLine or readLineW ended on a
                                /// '\r' character. 

  this() {}

Notice that the last readEOF comment actually goes with prevCr and the last 2
comments of prevCr end up going with the constructor. The resulting
documentation is pretty confusing and incorrect.

Sep 25 2006
parent d-bugmail puremagic.com writes:

bugzilla digitalmars.com changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

------- Comment #1 from bugzilla digitalmars.com  2006-10-04 19:59 -------
Fixed DMD 0.168

Oct 04 2006