Re: Struct Inheritence

2016-02-19 Thread user001 via Digitalmars-d-learn
Yes that's exactly what i needed, thanks!

Re: Struct Inheritence

2016-02-19 Thread Yuxuan Shui via Digitalmars-d-learn
On Friday, 19 February 2016 at 21:58:24 UTC, user001 wrote: Well struct don't have it, but i would like something like it but only for data, i don't need functions or anything like that just data. [...] How about struct A { int valueA; } struct B { A a; int valueB; alias a

Re: Struct Inheritence

2016-02-19 Thread cym13 via Digitalmars-d-learn
On Friday, 19 February 2016 at 21:58:24 UTC, user001 wrote: Well struct don't have it, but i would like something like it but only for data, i don't need functions or anything like that just data. struct A { int valueA; } struct B { A a; int valueB

Struct Inheritence

2016-02-19 Thread user001 via Digitalmars-d-learn
Well struct don't have it, but i would like something like it but only for data, i don't need functions or anything like that just data. struct A { int valueA; } struct B { A a; int valueB; } struct C { B b; int valueC;