On Monday, 8 June 2015 at 07:51:24 UTC, Andrei Alexandrescu wrote:
I've been wondering for a good while whether it's possible with what we have. Looks like it is, modulo some gnarly hacks in introspecting function types.

https://github.com/D-Programming-Language/phobos/pull/3394


Destroy!

Andrei

almost missed the secondary(?) part of this PR.

http://erdani.com/d/phobos-prerelease/std_typecons.html#.ReplaceType

this looks incredibly useful, I often find myself using ugly templates to do this.

Reply via email to