[fpc-pascal] Re: Delphi's anonymous functions in Free Pascal
Michael Fuchs
freepascal at ypa-software.de
Wed Oct 19 22:32:57 CEST 2011
Am 19.10.2011 20:30, schrieb Florian Klämpfl:
> I still don't see why this cannot be done by procedure variables: one
> can easily pass a procedure reference to a compare function to any sort
> library call.
It is maybe easier to write a anonymous function inline than declaring a
function and passing it with a reference to this function.
Sometimes I miss them in FPC, but I am also not sure if this feature
destroys the beauty of Pascal.
Not easy.
Michael
More information about the fpc-pascal
mailing list