News for hackers. Stuff that matters.
Re:Copying data is wasteful, mutating data is dangerous by benibela on Thursday January 09, 2020 @01:41PM (#22004076)
That is how strings work in Delphi/Pascal.

All strings have a reference count. When you change a string, and the ref count is not one, it is copied before the change. If the ref count is one, it is not copied

There are no comments on this comment yet.