[fpc-pascal] Re: New multicast event implementation
Anthony Walter
sysrpl at gmail.com
Thu Feb 3 11:21:25 CET 2011
Have you used List<T>, Dictionary<K,V>, or IEnumerable<T> in C# much? How
about EventHandler<T>? They are pretty useful.
Even in Delphi, TList<T>, TObjectList<T>, and TCompare<T> are more than
handy IMO. No longer do I have to write "TMyObject(FList[I])" all over the
place. When using "if FList.IndexOf(Pointer(FInstance)) > 1" not only do you
need a typecast again, but you lose the ability to write or build in
TCompare<T>, for example to consider objects equal by comparing a specific
field.
Anyhow, I didn't mean this discussion to be about the merits of generics in
programming.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110203/82546129/attachment.html>
More information about the fpc-pascal
mailing list