D as a prototyping language (for C/C++ projects)

Jacob Carlborg doob at me.com
Thu Feb 28 13:28:26 PST 2013


On 2013-02-28 18:08, Andrei Alexandrescu wrote:

> T tap(alias func)(T x) { func(x); return x; }
>
> It's the kind of chaff that doesn't do any real work and only dilutes
> the value of a library, but I do think a tap tapping into a range does
> real work and would be a valuable addition.

What about a function allowing both?

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list