No dynamic Arrays in Struct?

Chris Nicholson-Sauls ibisbasenji at
Sat Feb 10 10:12:18 PST 2007

Manfred Nowak wrote:
> torhu wrote
>> You can't have an assignment in the struct definition.
> Oooops. Thank you. I was misleaded by the error message.
> -manfred

struct S {
   int[] map = new int[1000];

/Should/ work I believe, if you really want the length dynamic.

-- Chris Nicholson-Sauls

More information about the Digitalmars-d-learn mailing list