Can a member function return a delegate to itself?
Steve Teale
steve.teale at britseyeview.com
Tue May 22 22:10:01 PDT 2007
Something like:
class Foo
{
int a;
this() { a = 0; }
void delegate(int) sum(int n)
{ a += n; return cast(void delegate(int)) &this.sum; }
}
More information about the Digitalmars-d
mailing list