Add to SetLength documentation, that it forces also refcount=1
Original Reporter info from Mantis: lacak @lacak.sk
-
Reporter name: LacaK
Original Reporter info from Mantis: lacak @lacak.sk
- Reporter name: LacaK
Description:
http://www.freepascal.org/docs-html/rtl/system/setlength.html
Add info, that calling SetLength on string or dynamic array makes this string or dynamic array unique, iow reference count is 1.
Mentioned for example here: http://wiki.freepascal.org/Dynamic_array as
"... using SetLength on such arrays does create a copy! So if 2 dynamic array variables point to the same array (one has been assigned to the other) they do not do so after using SetLength on one (or both) of them. After the SetLength() call the two variables are distinct arrays whose elements are independent from each other."
Mantis conversion info:
- Mantis ID: 31428
- Version: 3.0.0
- Fixed in version: 3.1.1
- Fixed in revision: 1394 (#cd46b919)
- Target version: 3.2.0