dmd 2.029 release
Daniel Keep
daniel.keep.lists at gmail.com
Mon Apr 20 02:26:05 PDT 2009
Daniel Keep wrote:
>
> bearophile wrote:
>> BCS Wrote:
>>> Cool template function literals sounds interesting
>> May I have one example of them?
>> I am looking in the docs, but I am not finding anything...
>>
>> Bye,
>> bearophile
>
> If I had to guess, I'd say it was something like this:
>
>> alias (T)(T a, T b) { return (a+b)/2.0; } average;
>
> Haven't had a chance to TRY that yet, mind you. :P
>
> -- Daniel
(Sees Walter's post)
Guess not. :P
-- Daniel
More information about the Digitalmars-d-announce
mailing list