[fpc-pascal] Delphi compatible anonymous functions

Craig Peterson craig at scootersoftware.com
Fri May 23 17:46:06 CEST 2014


On 5/23/2014 2:09 AM, Michael Schnell wrote:
> rather simple:
>  - declaring the event method as something like "closure" resulting it
> having it do an auto-free on exit.
> 
> more advanced (needing the RTL to provide pool of threads to fire on
> demand):
>  - "parallel loop" and "future" support like in "Prism"
> 
> (In fact I don't see "anonymous functions"  - see thread topic - here.)

I'm not sure exactly what you're asking/proposing.  Yes, there are
alternative syntaxes for closures that might be more "Pascalish", but I
want something that's compatible with Delphi because we need to keep
using it on Windows for the foreseeable future.

-- 
Craig Peterson
Scooter Software





More information about the fpc-pascal mailing list