[Issue 7203] Method pointer types differ depending on context

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 2 21:48:11 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7203


Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2012-01-02 21:48:08 PST ---
In non-static member function of A, A.foo is implicitly translated to this.foo.
So in function foo, typeof(&A.foo) == typeof(this.foo) and it is delegate type.

class A {
  void foo() {
    A.foo();  // recursive call
  }
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list