D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3312 - std.string.count should use const(char)[], not immutable.
Summary: std.string.count should use const(char)[], not immutable.
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: Andrei Alexandrescu
URL:
Keywords:
Depends on:
Blocks: 3313
  Show dependency treegraph
 
Reported: 2009-09-11 08:19 UTC by David Simcha
Modified: 2015-06-09 01:26 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description David Simcha 2009-09-11 08:19:51 UTC
There's not much of a reason why count() needs a guarantee that noone else will have a mutable view of the arguments.
Comment 1 Lars T. Kyllingstad 2010-08-13 03:22:16 UTC
http://www.dsource.org/projects/phobos/changeset/1844
Comment 2 David Simcha 2010-08-15 21:32:05 UTC
Fixed in SVN, thanks to Lars Tandle Kyllingstad.