On 30/11/10 2:00 AM, Walter Bright wrote:
Logical const means the same value is returned every time, not a
different one.

No, it doesn't. Not even D's const can guarantee that:

struct Foo
{
  int foo() const { return random(); }
}


pure is related to const, but they are not the same thing.

Reply via email to