Meta-programming - examples
Andrei Alexandrescu (See Website For Email)
SeeWebsiteForEmail at erdani.org
Sat Feb 10 22:40:07 PST 2007
janderson wrote:
> Andrei Alexandrescu (See Website For Email) wrote:
>> janderson wrote:
>>> Multi-threading
>>>
>>> The suggestion with multi-threading I came up with a little while ago:
>>>
>>> int[] array ...
>>> int result = 0;
>>> mixin(threadIt(
>>> "
>>> foreach(A a; array)
>>> {
>>> result += a;
>>> }
>>> combiner //If necessary?
>>> {
>>> result = result[0] + result[1];
>>> }
>>> ");
>>>
>>> Compile time checking of code for coding standards or what have u:
>>
>> I'm not understanding this.
>
> What part?
The multi-threading part.
Andrei
More information about the Digitalmars-d
mailing list