D 50% slower than C++. What I'm doing wrong?

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Sun Apr 15 01:41:01 PDT 2012


On 15/04/12 10:29, Joseph Rushton Wakeling wrote:
> ... the compiler accepts it. Whether that's because it's acceptably pure, or
> because the compiler just doesn't detect this case of impurity, is another
> matter. The int k is certainly mutable from outside the scope of the function,
> so AFAICS it _should_ be disallowed.

Meant to say: outside the scope of the struct.



More information about the Digitalmars-d-learn mailing list