2014-06-01 11:18 GMT-03:00 Michael Van Canneyt <mich...@freepascal.org>: > > On Sun, 1 Jun 2014, Daniel Gaspary wrote: > >> On Sun, Jun 1, 2014 at 5:27 AM, Michael Van Canneyt >> <mich...@freepascal.org> wrote: >> >>> Make this a TCollection/TCollectionItem. Generics are not used in the DB >>> units, and they should not be used for consistency. >>> >> >> But I was thinking that TSqlObjectIdenfier could be reused at Data >> Dictionary Units. As a TCollectionItem could be harder to reuse, as it >> will depend of the existence of a TCollection. >> > > I don't understand what you mean with this sentence ? > > 1. TCollectionItem can perfectly be used without TCollection. > 2. You create the collection implicitly with your generic list anyway; > the exercise is pointless without it; so why not be explicit ? > > But if you feel more comforable with a record and an dynamic array: feel > free to use that. Though I don't see a problem with > TCollectionItem/TCollection. > It is used everywhere in the FCL.
... And more an advantage using TOwnedCollection/TCollection: you can show its properties in object inspector. -- Silvio Clécio My public projects - github.com/silvioprog
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal