[Issue 2118] New: Inconsistent use of string vs invariant(char[]) in doc

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 20 11:40:50 PDT 2008


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 at digitalmars.com
        ReportedBy: jlquinn at 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.


-- 



More information about the Digitalmars-d-bugs mailing list