On 13/06/2015 15:18, Florian Klämpfl wrote:
Foo2(a1[i],a2[j])

a1, a2 being dyn. arrays, but sharing data, i and j having the same value.



I dug out my old "turbo delphi".

In all both cases (my original example / you dyn array example) Delphi passes nil for the normal parameter, and fpc passes a dangling pointer.

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to