Template news (2012+)

Dmitry Olshansky dmitry.olsh at gmail.com
Sat Jan 5 12:46:07 PST 2013


06-Jan-2013 00:32, Dmitry Olshansky пишет:
> 05-Jan-2013 22:58, Philippe Sigaud пишет:
>>
>>> So, here is my own small list:
>>>
>>> - is(Type name = A!(Args), Args...) now exists. The Args... part is new.
>>> - the new (a,b) => a+b syntax was introduced
>>> - the eponymous trick works even when other non-eponymous members are
>>> defined
>>> - error reporting got better
>>> - CTFE got better.
>>> - auto ref?
>>> - __ctfe. I think it arrived just when I wrote the doc. I've now used
>>> it and it works great!
>>> - UFCS: not a template feature per se, but quite useful in conjunction
>>> with templates.
>>> - UDA. ditto, except I know zilch about them. But, type & value
>>> manipulation at compile-time, them I know.
>>
>>
>> No one can help me complete my list? Has any other thing changed in
>> template-land in 2012?
>>
>
> Some new traits happened.
> Not there is a way to peek at function parameter identifiers (!):

s/Not/Now

> http://dlang.org/phobos/std_traits.html#.ParameterIdentifierTuple
> + something else I might forgot in std.traits, it's worth revisiting
> + isPOD in compiler's __traits
>


-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list