patterns/abstractfactory/pepperoni.d

9 lines
173 B
D

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