[fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

Marco van de Voort marcov at stack.nl
Thu Aug 30 13:49:14 CEST 2012


In our previous episode, michael.vancanneyt at wisa.be said:
> >> From personal experience, when i first time saw how pascalish is closures
> > implementation in Delphi i just admired the ease in which that concept was
> > fused into the language of very different style built upon very different
> > ideas. It was so elegant when reading docs, i admired it. Like probably you
> > do.
> 
> Not really: it breaks my eyes, just as it does in JavaScript :(

This thread is mostly about the semantics and the need.

But what about the implementation? I heard that in Delphi you have to be
careful with anonymous methods because it not always catches expressions and
variables, and that there are many corner cases?




More information about the fpc-pascal mailing list