The Thermopylae excerpt of TDPL available online

Don nospam at nospam.com
Fri Oct 30 05:07:53 PDT 2009


bearophile wrote:
> Don:
> 
>> traits.compiles(XXX)
>> traits.typeid(TTT)
>> traits.stringof(T)
>> traits.allMembers(T)
>> traits.error("message");
> 
> Cute.
> Simpler alternative, the dot isn't necessary:
> 
> traits_compiles(XXX)
> traits_typeid(TTT)
> traits_stringof(T)
> traits_allmembers(T)
> traits_error("message");

That is WAY more complicated! It adds a crazy number of keywords, and 
isn't extensible.



More information about the Digitalmars-d mailing list