D doesn't have implicit operators for structs?

struct S {float a, float b};
S a = {1, 5};
S b = {2, 5);

a += b;
Error: a is not a scalar, it is a S

So I really have to write an overloaded operator for such cases?

--
Robert M. Münch
http://www.saphirion.com
smarter | better | faster

Reply via email to