[fpc-pascal] Dynamic arrays in FP

Michael Van Canneyt michael at freepascal.org
Thu May 5 13:06:52 CEST 2005



On Thu, 5 May 2005, Jilani Khaldi wrote:

>
> > Dynamic arrays are an internal type of pascal. C doesn't know dynamic
> > arrays. That it works with delphi is pure luck.
>
> Sorry, but pascal dynamic arrays are just pointers.

Totally wrong. They are a reference counted type.

See e.g. page 5-19 of the Delphi 7 Language guide.

(Chapter 5 'Data types', section structured types - arrays - dynamic arrays)

Michael.





More information about the fpc-pascal mailing list