digitalmars.D.learn - initialising inner struct
- David Ferenczi (13/13) May 12 2007 I can't find out how to initialise the inner struct.
- Manfred Nowak (12/13) May 12 2007 struct A
- David Ferenczi (3/20) May 12 2007 Hey, it was quick!
I can't find out how to initialise the inner struct.
struct A
{
int a;
struc B
{
int b;
}
}
A dataA = { a:0, ??? };
Could someone help me?
Thanks,
David
May 12 2007
David Ferenczi wroteCould someone help me?struct A { int a; struct B { int b; } B b; // needs a declaration } A dataA = { a:0, { b:0} }; -manfred
May 12 2007
Manfred Nowak wrote:David Ferenczi wroteHey, it was quick! Many thanks!Could someone help me?struct A { int a; struct B { int b; } B b; // needs a declaration } A dataA = { a:0, { b:0} }; -manfred
May 12 2007








David Ferenczi <raggae ferenczi.net>