[fpc-pascal] Feature announcement: implicit generic function specializations

Hairy Pixels genericptr at gmail.com
Thu Apr 21 09:48:40 CEST 2022



> On Apr 21, 2022, at 3:48 AM, Mattias Gaertner via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
>> Writeln(Apply(@StrFunc, 'Foobar')); // will write FOOBAR
>> Writeln(Apply(@NegFunc, 42)); // will write -42
>> end.
> 
> Mind boggling. :)

This was actually your idea if I remember correctly. :) I think you said even Delphi doesn’t do this so I challenged myself to get it done.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list