[fpc-pascal] Re: Objects in dynamic arrays

Tomas Hajny XHajT03 at hajny.biz
Thu Nov 28 10:22:12 CET 2013


On Thu, November 28, 2013 09:03, Sven Barth wrote:
> Am 28.11.2013 08:33, schrieb Andreas Schneider:
>> Maybe a bit late, but that might not be true. If Timothy really talks
>> about _object_ (and not _class(TObject)_) it should work as he does
>> it. Also Destroy would probably be appropriate. Just saying :-) The
>> actual type defs used are missing.
> Unlikely. Quote of Timothy:
>> How exactly are instantiated classes treated in an array?
> So it's very likely that he is indeed talking about descendants of
> TObject.

Agreed.

BTW, note that reference to "TObject" is not the best solution for
differentiation between "old" objects and classes, because TObject type
exists for both.

Tomas





More information about the fpc-pascal mailing list