isInputRange as a __traits ?

user1234 user1234 at 12.ie
Sat Oct 7 10:31:01 UTC 2017


Since the compiler has the ability to detect input ranges in the 
foreach aggregate that are aggregates implementing the right 
primitives, why don't you set the widely used 
std.range.isInputRange as a __trait, e.g __traits(isInputRange, 
Stuff) ?


More information about the Digitalmars-d mailing list