[D1] struct opEquals questions

bearophile bearophileHUGS at lycos.com
Thu Mar 18 11:04:13 PDT 2010


qwerty:
> For a function without any side effects, it shouldn't be a problem.. I think :)

Ignoring the return value of a function without side effects (in D2 pure functions or nothrow pure functions) has to be an error. I even have a bug report for this, because it's the same situation as an expression like:
a + 5;
that the compiler sees as an error.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list