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





--- Comment #6 from Sobirari Muhomori <ma...@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: -------

Reply via email to