[fpc-pascal] Iterating over elements from GetDynArrayProp

Hairy Pixels genericptr at gmail.com
Sat Oct 15 10:18:01 CEST 2022



> On Oct 15, 2022, at 3:03 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
> 
> as far as I kbow, this should be
> ObjectArray := TObjectArray(GetDynArrayProp(AObject, PropertyInfo));
> i.e. you get the actual array as a result.
> 

You’re right, I didn’t need that pointer cast. I’m still curious though why that didn’t work. Shouldn’t the pointer still just point to the dynamic array address and basically do nothing?

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list