August 06, 2016
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.
August 06, 2016

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.