[fpc-devel] Feature announcement: Generic functions, procedures and methods

Maciej Izak hnb.code at gmail.com
Sat Nov 21 18:46:58 CET 2015


2015-11-21 18:32 GMT+01:00 Sven Barth <pascaldragon at googlemail.com>:

> Hello together!
>
> I'm pleased to finally announce the addition of generic functions,
> procedures and methods (collectively called "routines") to Free Pascal
> which allows writing type safe methods that can be used for multiple types.
>

Congratulations :D... It forces me to update Generics.Collections :P

Because of the missing "specialize" keyword that mark specializations
> complex expressions *do not* work in mode Delphi yet. So assignments of
> function results are okay, but other than that you'll likely encounter
> compiler errors.
>

Could you please show some example of limitations?

-- 
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20151121/463603ae/attachment.html>


More information about the fpc-devel mailing list