digitalmars.D.bugs - [Issue 2718] New: Inconsistent string parameters in Phobos functions
- d-bugmail puremagic.com (26/26) Mar 09 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2718
- d-bugmail puremagic.com (10/10) Oct 11 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2718
- d-bugmail puremagic.com (11/11) Sep 26 2010 http://d.puremagic.com/issues/show_bug.cgi?id=2718
http://d.puremagic.com/issues/show_bug.cgi?id=2718 Summary: Inconsistent string parameters in Phobos functions Product: D Version: 2.025 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: bugzilla digitalmars.com ReportedBy: clugdbug yahoo.com.au Some trivial inconsistencies in Phobos functions. Some of them are quite annoying. std.utf: string toUTF8(string s); -> string toUTF8(const(char)[] s); std.string: const(char)* toStringz(const(char)[] s); -> immutable(char)* toStringz(const(char)[] s); (Returning a const is always suspicious). std.stream: void write(char[] s); -> void write(const(char)[] s); size_t printf(char[] format,...); -> size_t printf(const(char)[] format,...); std.encoding: abstract const string toString(); -> abstract string toString(); --
Mar 09 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2718 Andrei Alexandrescu <andrei metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |andrei metalanguage.com AssignedTo|nobody puremagic.com |andrei metalanguage.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 11 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2718 Andrei Alexandrescu <andrei metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED 14:20:33 PDT --- Fixed: http://www.dsource.org/projects/phobos/changeset/2060 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 26 2010