[Issue 4898] New: Can't see parent function's variables from nested functions when debugging

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 19 14:25:34 PDT 2010


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

           Summary: Can't see parent function's variables from nested
                    functions when debugging
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: aldonunez1 at gmail.com


--- Comment #0 from Aldo Nunez <aldonunez1 at gmail.com> 2010-09-19 14:24:58 PDT ---
The debug info for a nested function has an entry for a "this" variable which
points to the variables in the parent function that the nested function can
use. The type of that variable is void*. 

If it were a kind of struct, then we could see those dependent variables. This
is particularly useful for closures where the user can't look at the enclosing
function's frame directly.

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