patterns/abstractfactory/veggies.d

10 lines
170 B
D
Raw Normal View History

2022-12-05 07:38:19 +00:00
module abstractfactory.veggies;
interface Veggies
{
string opBinary(string op : "~")(string s) const
{
return (cast(Object)this).toString() ~ s;
}
}