www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - Visual D bug in identifiers

reply Mark "J" Twain <Juckleberry Twain.com> writes:
I have code similar to the following

if (x)
{
     auto ptr = ;
} else
{
     auto ptr = ;
}

Visual D shows both ptr's but they both have the same value. 
Renaming one ends up showing different values.
Aug 05 2016
parent Rainer Schuetze <r.sagitario gmx.de> writes:
On 06.08.2016 05:12, Mark J Twain wrote:
 I have code similar to the following

 if (x)
 {
     auto ptr = ;
 } else
 {
     auto ptr = ;
 }

 Visual D shows both ptr's but they both have the same value. Renaming
 one ends up showing different values.
I guess you mean the local variables in the debugger. So far, dmd didn't emit lexical scope information for variables. This has been added recently, please try dmd's nightly build.
Aug 06 2016