patterns/abstractfactory/dough.d

10 lines
166 B
D

module abstractfactory.dough;
interface Dough
{
string opBinary(string op : "~")(string s) const
{
return (cast(Object)this).toString() ~ s;
}
}