patterns/abstractfactory/cheese.d

10 lines
168 B
D

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