class C
{
int draw(){ return 10; }
}
interface Drawable
{
long draw();
}
...
auto c = new C;
auto d = duck!Drawable(c); // awesKenji, I'll be looking forward to your submission :o). Would be great to allow structs to duck, too!
Andrei
class C
{
int draw(){ return 10; }
}
interface Drawable
{
long draw();
}
...
auto c = new C;
auto d = duck!Drawable(c); // awesKenji, I'll be looking forward to your submission :o). Would be great to allow structs to duck, too!
Andrei