Re: Little demo of allowing basic types to implement interfaces. Was in D.annouce

2013-09-04 Thread Rory McGuire
Just wondering if this exists in the standard library. I made a function "Implements!(T,I)" that returns true is a given type "T" implements the interface "I". http://dpaste.dzfl.pl/d7a727fd I've found it really helps with keeping some code clean such as the below: void main() { int

Re: Little demo of allowing basic types to implement interfaces. Was in D.annouce

2013-09-04 Thread Dicebot
It does not exist and often (re)implemented by different people here and there. There still few issues that do not make it vastly more superior than existing `isInputRange!T` and friends - I guess this is why no one bothered submitting pull requests to the Phobos in the end. 1) You have alre