View Issue Details

IDProjectCategoryView StatusLast Update
0037473FPCDocumentationpublic2020-09-04 16:47
ReporterSven Barth Assigned ToMichael Van Canneyt  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Product Version3.2.0 
Fixed in Version3.3.1 
Summary0037473: Clarify documentation of SetLength when shrinking the array/string
DescriptionA discussion on the forum ( https://forum.lazarus.freepascal.org/index.php/topic,50842.msg372265.html#msg372265 ) showed that the documentation of SetLength does not seem to be clear enough regarding the shrinking of the string/array. This might be formulated better to avoid such confusion.
TagsNo tags attached.
Fixed in Revision1747
FPCOldBugId
FPCTarget3.2.2
Attached Files

Activities

Michael Van Canneyt

2020-09-04 14:02

administrator   ~0125357

Changed with hopefully more clear description.

Sven Barth

2020-09-04 15:24

manager   ~0125362

This part is not quite correct:

> The elements that fall outside the new length are finalized.
> (set to zero, or reference count decreased in case of managed types).

In case of non-managed types they are simply discarded, but otherwise not touched in any way.

Michael Van Canneyt

2020-09-04 15:43

administrator   ~0125364

fixed in rev 1749.

Sven Barth

2020-09-04 16:47

manager   ~0125368

Better. Thank you! :)

Issue History

Date Modified Username Field Change
2020-08-03 09:45 Sven Barth New Issue
2020-08-03 09:45 Sven Barth Status new => assigned
2020-08-03 09:45 Sven Barth Assigned To => Michael Van Canneyt
2020-09-04 14:02 Michael Van Canneyt Status assigned => resolved
2020-09-04 14:02 Michael Van Canneyt Resolution open => fixed
2020-09-04 14:02 Michael Van Canneyt Fixed in Version => 3.3.1
2020-09-04 14:02 Michael Van Canneyt Fixed in Revision => 1747
2020-09-04 14:02 Michael Van Canneyt FPCTarget => 3.2.2
2020-09-04 14:02 Michael Van Canneyt Note Added: 0125357
2020-09-04 15:24 Sven Barth Status resolved => feedback
2020-09-04 15:24 Sven Barth Resolution fixed => open
2020-09-04 15:24 Sven Barth Note Added: 0125362
2020-09-04 15:43 Michael Van Canneyt Status feedback => resolved
2020-09-04 15:43 Michael Van Canneyt Resolution open => fixed
2020-09-04 15:43 Michael Van Canneyt Note Added: 0125364
2020-09-04 16:47 Sven Barth Status resolved => closed
2020-09-04 16:47 Sven Barth Note Added: 0125368