On 4/9/2013 6:49 AM, Dicebot wrote:
Not gonna argue latter but former is just wrong.

struct Test
{
     int a;
     pure int foo1() // strong pure
     {
         return 42;
     }

     pure int foo2() // weak pure
     {
         return a++;
     }
}

Signature is the same for both functions.

foo1 is weakly pure. It would be strongly pure if it were declared:

    const pure int foo1();

Reply via email to