Von: Jonas Maebe
Gesendet: So 03.05.2009 15:01
An: FPC developers' list ;
Betreff: Re: [fpc-devel] On code cleanup
Show quoted text 6 lines
On 03 May 2009, at 14:58, Alexander Klenin wrote:
> BTW, is generics good enough to be used in e.g. math.pp?
Afaik, generics have only been implemented for classes until now.
Plain generic functions are not (yet) supported.
I started a test with a simple generic red-black tree implementation: http://fpcfun.firmos.at/bin/view/Freepascal/GenericRedBlackTree played around with it a bit and put it in our commercial codebase dropping 12 different red-black tree implementations units with nearly the same code.
I am happy with the generics implementation at the current state it is practically usable!
helmut
