Skip to content

Not initialized array issue #23

@andre2007

Description

@andre2007

I have following sample code:

import std.stdio;

void test1(string s)
{

}

void main(string[] args)
{
	writeln(args);
	string[] test = ["aaa", "bbb"];
	test1(test[0]);
}

In Visual Studio I set breakpint on the writeln(args) statement.
In debugger there are 2 variables shown:

  Name Wert Typ
args {length=1 ptr=0x0019fe2c} const(char)[][]
test {length=4267205 ptr=0x00000000} const(char)[][]

The array test isn't available at this point of time, By clicking on the expand button there is a warning
shown that this will take some time due to the huge amount of items.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions