[Issue 3313] New: Check when immutability is really needed in std.string

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 11 08:22:41 PDT 2009


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 at puremagic.com
        ReportedBy: dsimcha at yahoo.com
        Depends on: 3312


--- Comment #0 from David Simcha <dsimcha at 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: -------


More information about the Digitalmars-d-bugs mailing list