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.li...@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 <cr...@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@lists.freepascal.org >> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal >> > >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal