Property discussion wrap-up
TommiT
tommitissari at hotmail.com
Fri Feb 1 07:26:23 PST 2013
On Friday, 1 February 2013 at 15:14:55 UTC, Jonathan M Davis
wrote:
> [..] You're generally doing something wrong
> if your type defines += and not + anyway, so I really don't see
> the problem
> here.
Okay, I suppose you're right. But that still leaves the possible
performance overhead with s.prop = (s.prop + 3). For example, if
prop is an array of values, there's no point in making a copy of
it, when you could more effectively just add 3 to each element of
the array.
More information about the Digitalmars-d
mailing list