Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: