[fpc-pascal] Delphi compatible anonymous functions
    Craig Peterson 
    craig at scootersoftware.com
       
    Mon May 26 15:49:32 CEST 2014
    
    
  
On 5/26/2014 8:43 AM, Michael Schnell wrote:
> Nice ! I did not know that. I understand that you mean this without 
> the Prism compatible syntax candy for t futures and parallel loops ?!?!?
Yes.  The syntax isn't as nice, but it works:
   Parallel.ForEach(1, testSize).Execute(
     procedure  (const  elem: integer)
     begin
       if  IsPrime(elem)then
         outQueue.Add(elem);
     end);
http://otl.17slon.com/tutorials.htm
-- 
Craig Peterson
Scooter Software
    
    
More information about the fpc-pascal
mailing list