--- Comment #4 from Lutger <> 2010-08-07 04:42:33 
PDT ---
Something else is going on, the following does fail in line with your proposal:

import std.c.stdio: printf;

struct Foo {
   int data;

   int opEquals(ref const(Foo) other) const 

       return ==;
void main() {
   int r = Foo(5) == Foo(5);

output: Error: function test.Foo.opEquals type signature should be const
bool(ref const(Foo)) not const int(ref const(Foo) other)

Changing opEquals to return bool makes it compile correctly.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to