[Issue 9601] Make regular D objects on closures

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 27 08:51:12 PST 2013


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



--- Comment #2 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2013-02-27 19:51:10 MSK ---
(In reply to comment #1)
> Please elaborate on "to make created delegate data pointer referring to a valid
> D object just like for class member function".

As it looks like a proper way to allow "controlling/watching delegate lifetime"
as I wrote. And such ability is essential to fix e.g. Phobos Issue 9603 and
make a small but fundamental step forward to working signals in D. Also see
Issue 9602.

> I see no point here since it is
> always possible to do:
> 
> delegate dg = ...;
> dg.ptr = whatever is valid - class for member-function, frame for non-member
> one
> dg()

I do not understand you example at all.

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