[Issue 3051] Passing alias to member function does not work (1/2)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 10 03:30:27 PDT 2009


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





--- Comment #6 from Sobirari Muhomori <maxmo at pochta.ru>  2009-06-10 03:30:25 PDT ---
void foo(delegate void() dg)
{
  dg();
}

class C
{
   int y;
   void fun()
   {
       int x = 0;
       auto me=this;
       void gun()
       { stack.x++; stack.me.y++; }
       foo(&gun); //closure
   }
}

-- 
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