[fpc-pascal] Re: New multicast event implementation
Anthony Walter
sysrpl at gmail.com
Wed Feb 2 15:40:06 CET 2011
By the way, does Free Pascal generic support generic constraints yet? Also,
this format seems more natural to me:
TCollection<T: TCollectionItem> = class
property Count: Integer;
property Items[Index: Integer]: T;
end;
TStatusPanels = class(TCollection<TStatusPanel>);
rather than ...
generic TCollection<T> = class // no constrain ability
property Count: Integer;
property Items[Index: Integer]: T;
end;
TStatusPanels = specialize TCollection<TStatusPanel>;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110202/6df3f264/attachment.html>
More information about the fpc-pascal
mailing list