[Issue 5059] String assignment in foreach loop breaks immutability

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 24 14:40:50 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5059



--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-05-24 14:36:34 PDT ---
Should I just change that line to:
Key key =   m_key.getKey(sName[0 .. cchName].idup);

I think this makes the most sense if we're to trust that strings are immutable. 

I can make a pull request if this fix would be ok (my tests show that this
fixes the issue).

-- 
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