www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2118] New: Inconsistent use of string vs invariant(char[]) in doc

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

           Summary: Inconsistent use of string vs invariant(char[]) in doc
           Product: D
           Version: 2.014
          Platform: PC
               URL: std_mmfile.html
        OS/Version: Linux
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: jlquinn optonline.net


The docs for the full constructor use "string" in the prototype, but
invariant(char[]) in the parameter description.  I think it should use the same
thing in both cases to be cleaner and easier to use even though they are
semantically identical.  My preference is "string". but the consistency is more
important.

this(string filename, Mode mode, ulong size, void* address, size_t window = 0);
    Open memory mapped file filename in mode. File is closed when the object
instance is deleted.

    Params:
    invariant(char)[] filename  name of the file.


-- 
May 20 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2118


bugzilla digitalmars.com changed:

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





Fixed dmd 1.031 and 2.015


-- 
Jun 22 2008