[fpc-pascal] Delphi compatible anonymous functions

Dmitry Boyarintsev skalogryz.lists at gmail.com
Mon May 26 15:55:07 CEST 2014


Sorry, you've actually somehow answered my questions earlier... I'm
rereading the thread now.


On Mon, May 26, 2014 at 9:53 AM, Dmitry Boyarintsev <
skalogryz.lists at gmail.com> wrote:

> I might be wrong, but reading through OmniThreadLibrary  - the usage of
> anonymous functions is optional.
> The regular language structures could be used: global functions/object
> methods.
> Why having anonymous support is critical for the usage of the library?
>
> thanks,
> Dmitry
>
>
>
> On Mon, May 26, 2014 at 9:49 AM, Craig Peterson <craig at scootersoftware.com
> > wrote:
>
>> 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
>>
>> _______________________________________________
>> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140526/417514dc/attachment.html>


More information about the fpc-pascal mailing list