[fpc-pascal] Dynamic arrays, yet another pitfall
Jürgen Hestermann
juergen.hestermann at gmx.de
Mon Feb 17 22:25:41 CET 2014
Am 17.02.2014 21:09, schrieb Florian Klämpfl:
> Am 16.02.2014 14:07, schrieb Jürgen Hestermann:
>> When using unknown features of a programming language for the first time
>> then the documentaion should tell all aspects in detail and describe the
>> exact behaviour.
> No. Details might be implementation specific behaviour which might change.
>
So you mean it can change in that SetLength may *not* create a copy some
day?
Or can we rely on that this will always happen?
If the latter, why not document it (it's realy important to know
because you cannot go without setlength).
All details which are *not* object to change should be documented so we
know how data structures like
dynamic arrays behave.
More information about the fpc-pascal
mailing list