2118 – Inconsistent use of string vs invariant(char[]) in doc

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2118 - Inconsistent use of string vs invariant(char[]) in doc
Summary: Inconsistent use of string vs invariant(char[]) in doc
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: x86 Linux
: P2 trivial
Assignee: Walter Bright
URL: std_mmfile.html
Keywords:
Depends on:
Blocks:
Reported: 2008年05月20日 13:40 UTC by Jerry Quinn
Modified: 2015年06月09日 01:21 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Jerry Quinn 2008年05月20日 13:40:49 UTC
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.
Comment 1 Walter Bright 2008年06月22日 18:56:26 UTC
Fixed dmd 1.031 and 2.015


AltStyle によって変換されたページ (->オリジナル) /