On Wed, Feb 19, 2014 at 2:18 PM, Bienlein <[email protected]> wrote:I see. Unhappily, I don't have a D compiler handy. Would this compile:immutable s = ["red", "blue"].sumIf not, it would be interesting to understand how that works :-)It won't work, since binary + is not defined for strings. I don'tunderstand what you want, here.
Then how can you add a sum method to a parameterized type if it only works for numbers?
