[fpc-devel] Xe3 Parallel for
Sven Barth
pascaldragon at googlemail.com
Tue May 12 14:21:05 CEST 2015
Am 12.05.2015 13:45 schrieb "Michael Schnell" <mschnell at lumino.de>:
>>>
>>> TParallel.For(2,1,Max,procedure(I:Int64)
>>
>> This is a class method parameterised with D2009 anonymouse method, not a
>> language construct.
>>
>> If you read the release manifest well, they talk about a parallel
library,
>> not paralel language extensions.
>
>
> I did not claim that it's a brand new language construct (or anything
else), I just said "feature".
>
> If the code snippet I mentioned is compilable even with D2009, only the
library is new.
>
> Nonetheless to me it seems rather silly that they offer a dedicated
language construct ("parallel for" / "future") with Prism and suggest
using another language construct (anonymous method) for exactly the same
purpose with Xe8.
They don't /own/ Prism. They merely license it, so what the Oxygene
developers do and what the Delphi developers do are two different things.
>
> Regarding fpc, I am aware that "anonymous method" had been discussed
here. I did not take a deeper look into same.
>
> Is / will the syntax be the same as with Delphi ?
At least in mode Delphi, yes.
>
> Will the fpc library provide the appropriate classes for doing
"TParallel.For" as described ?
If I remember correctly we already have something similar somewhere among
our supplied units for quite some time.
In the end I suppose that support for that TParallel class will be based on
"patches welcome" once anonymous functions are supported.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20150512/64fb9dda/attachment.html>
More information about the fpc-devel
mailing list