[EMAIL PROTECTED] wrote:
>
> What do you think is better a collection of objects, or an array of objects ?
> Collections seem to be res. complicated, where as an array of objects is simple as.
> Anyone have any thoughts ?
It depends if you know exactly how many objects you're going to need. It
can be dangerous to use an array unless you're certain that the number
of objects is never ever going to change. Even if you declare some
ridiculous amount of space for your array, there's still a possibility
that that limit will be exceeded (not to mention the wasted space...).
IMO it's always better to use a Collection for non-trivial stuff, simply
because of the added functionality that TCollection brings to the party.
Ah, if only Delphi had a decent collections implementation like Java
2...
- Matt
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"