dmd 2.029 release
Daniel Keep
daniel.keep.lists at gmail.com
Mon Apr 20 02:11:55 PDT 2009
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
More information about the Digitalmars-d-announce
mailing list