16.04.2013 10:10, deadalnix пишет:
On Tuesday, 16 April 2013 at 05:39:32 UTC, Denis Shelomovskij wrote:
Do you mean that tracking an object with a delegate whenever it goes
to just know where it's outer scope is destroyed is not a problem?

Delegate context is allocated on the heap, unless compiler can prove it
can do it on stack. context is destroyed when no live pointer point to it.

You still didn't explain why an object is better than the actual
delegate mecanism.

Sorry, I really don't understand what you don't understand.

Let's consider example from Issue 9603 Comment 2 [1]. Do you think such code must not work?

Also you can look through Issue 9601 discussion.

[1] http://d.puremagic.com/issues/show_bug.cgi?id=9603#c2
[2] http://d.puremagic.com/issues/show_bug.cgi?id=9601

--
Денис В. Шеломовский
Denis V. Shelomovskij

Reply via email to