Thread overview | ||||||
---|---|---|---|---|---|---|
|
September 11, 2009 [Issue 3313] New: Check when immutability is really needed in std.string | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from David Simcha <dsimcha@yahoo.com> 2009-09-11 08:22:39 PDT --- 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: ------- |
September 11, 2009 [Issue 3313] Check when immutability is really needed in std.string | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Simcha | http://d.puremagic.com/issues/show_bug.cgi?id=3313 --- Comment #1 from David Simcha <dsimcha@yahoo.com> 2009-09-11 08:24:03 PDT --- 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: ------- |
September 11, 2009 [Issue 3313] Check when immutability is really needed in std.string | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Simcha | 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: ------- |
January 11, 2011 [Issue 3313] Check when immutability is really needed in std.string | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Simcha | http://d.puremagic.com/issues/show_bug.cgi?id=3313 Andrei Alexandrescu <andrei@metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Andrei Alexandrescu <andrei@metalanguage.com> 2011-01-10 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: ------- |
Copyright © 1999-2021 by the D Language Foundation