Problem with delegates
Zarathustra
adam.chrapkowski at gmail.com
Sun Sep 7 07:43:07 PDT 2008
Ok, thanks for information. Sorry, currently the Tango is not compatible with D2. At least I do not know anything about it. But I hope D2 will be more and more popular and the number of libraries which support it will be grow.
Best regards
Zarathustra
Frank Benoit Wrote:
> I think this is a D1-only problem. An nested function has always a
> reference to the current stack frame and navigates relative to it. In
> your case the stack frame of the ctor. If the ctor is completed, the
> stackframe gets invalid and a later call to the nested function fails.
>
> In D2, taking the address of the nested function would force the stack
> frame to be allocated on the heap and the later call would not make
> problems.
>
More information about the Digitalmars-d-learn
mailing list