[D1] struct opEquals questions

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

> 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.


More information about the Digitalmars-d-learn mailing list