[Lazarus] SEGFAULT: difference between pointer and dynarray?

Hans-Peter Diettrich DrDiettrich1 at aol.com
Sun Dec 30 06:36:36 CET 2012


xrfang schrieb:

> 1) what's the difference between open array and dynamic array? Is "array 
> of Integer" open or dynamic?

Open arrays are parameters only, compatible with all kinds of arrays.

AFAIK the (Delphi) compiler adds hidden (implementation specific) 
information about the array dimension, to the accessible array base 
address. I'm not sure what's the base address of an array[-10..10] in 
this case. Try find out yourself...

DoDi





More information about the Lazarus mailing list