<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-06-01 11:18 GMT-03:00 Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span>:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On Sun, 1 Jun 2014, Daniel Gaspary wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On Sun, Jun 1, 2014 at 5:27 AM, Michael Van Canneyt<br>
<<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Make this a TCollection/TCollectionItem. Generics are not used in the DB<br>
units, and they should not be used for consistency.<br>
</blockquote>
<br>
But I was thinking that TSqlObjectIdenfier could be reused at Data<br>
Dictionary Units. As a TCollectionItem could be harder to reuse, as it<br>
will depend of the existence of a TCollection.<br>
</blockquote>
<br>
I don't understand what you mean with this sentence ?<br>
<br>
1. TCollectionItem can perfectly be used without TCollection.<br>
2. You create the collection implicitly with your generic list anyway;<br>
the exercise is pointless without it; so why not be explicit ?<br>
<br>
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.<br>
It is used everywhere in the FCL.</blockquote></div><div><br></div><div>... And more an advantage using TOwnedCollection/TCollection: you can show its properties in object inspector.</div><div><br></div>-- <br>Silvio Clécio<br>
My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a>
</div></div>