[Issue 9601] New: Make regular D objects on closures

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 27 01:57:16 PST 2013


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

           Summary: Make regular D objects on closures
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: verylonglogin.reg at gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2013-02-27 12:57:11 MSK ---
The idea is to make created delegate data pointer referring to a valid D object
just like for class member function.

It will allow passing closure delegate to functions where such objects are
expected and controlling/watching delegate lifetime.

Once it will be implemented the only "raw" delegates would be struct member
function delegates? which are used rarely and can easily be avoided.

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