patterns/abstractfactory/sauce.d

9 lines
165 B
D

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