digitalmars.D.bugs - [Issue 3313] New: Check when immutability is really needed in std.string
- d-bugmail puremagic.com (22/22) Sep 11 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3313
- d-bugmail puremagic.com (8/8) Sep 11 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3313
- d-bugmail puremagic.com (10/10) Sep 11 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3313
- d-bugmail puremagic.com (11/11) Jan 10 2011 http://d.puremagic.com/issues/show_bug.cgi?id=3313
http://d.puremagic.com/issues/show_bug.cgi?id=3313
Summary: Check when immutability is really needed in std.string
Product: D
Version: 2.032
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody puremagic.com
ReportedBy: dsimcha yahoo.com
Depends on: 3312
This is a meta-bug. In std.string, there are a lot of functions that demand
immutable arguments when they don't really need a guarantee that noone else has
a mutable view of the string, and thus, const arguments would do just fine.
Fixing this would make the const system seem like much of a straight jacket to
newcomers without reducing safety.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 11 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3313 Forgot to mention, for stuff that returns some kind of string, array of strings, etc. that are aliased to the original, templates should probably be used to give the same guarantees about mutability that the original string had. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 11 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3313
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: -------
Sep 11 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3313
Andrei Alexandrescu <andrei metalanguage.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
16:52:27 PST ---
Fixed in http://www.dsource.org/projects/phobos/changeset/2298
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 10 2011









d-bugmail puremagic.com 