www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4898] New: Can't see parent function's variables from nested functions when debugging

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: aldonunez1 gmail.com


--- Comment #0 from Aldo Nunez <aldonunez1 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: -------
Sep 19 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4898


bearophile_hugs eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs eml.cc


--- Comment #1 from bearophile_hugs eml.cc 2010-09-19 18:02:23 PDT ---
Is this an enhancement request?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 19 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4898


Aldo Nunez <aldonunez1 gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


--- Comment #2 from Aldo Nunez <aldonunez1 gmail.com> 2010-09-20 21:03:48 PDT
---
I guess it would be an enhancement. I updated the bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 20 2010