Alpha renaming in types is finally here
weaselcat via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jun 9 01:50:43 PDT 2015
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.
More information about the Digitalmars-d
mailing list