[fpc-devel] Generics.Collections as package for Lazarus or package for FPC RTL

Sven Barth pascaldragon at googlemail.com
Fri Jan 29 14:19:06 CET 2016

Am 29.01.2016 12:28 schrieb "Marco van de Voort" <marcov at stack.nl>:
> In our previous episode, silvioprog said:
> > > The format of interface VMTs could also differ per platform so
> > > that as more stable only holds true because of what we currently
> > >
> >  Sorry for ask here, but, don't you recomment to use interfaces? I'm
> > a project and I'm planning to use some COM interfaces to make something
a list
> > adapter
> > <http://developer.android.com/reference/android/widget/ListAdapter.html
> Interfaces are relatively slow. Not only because of the refcounting, but
> returning interfaces in a tight loop (e.g. to get the elements of an
> enumeration) would be a new allocation each time.

Note: the enumerator of a for-in is only fetched once before the loop, so
it does not really matter whether it's an interface or record as long as
the elements themselves aren't on demand allocated interfaces.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20160129/4ed530c2/attachment.html>

More information about the fpc-devel mailing list