Nested Structs (Solution)
js.mdnq
js_adddot+mdng at gmail.com
Fri Dec 14 13:35:50 PST 2012
On Friday, 14 December 2012 at 09:47:18 UTC, Rob T wrote:
> On Friday, 14 December 2012 at 07:39:33 UTC, js.mdnq wrote:
>>
>> Unfortunately it seems we have to make an assignment.
>>
>> A.B!(0) b = a.b1;
>
> This one tries to call a constructor that takes in a
> typeof(a.b1). Do you have a constructor for it?
>
>> does not work but
>>
>> A.B!(0) b;
>> b = a.b1;
>> does. Not sure if there is some way to make the first work.
>
> --rt
oh, thats what it does?!?!?! ;) Ok, well, then it should be easy
to add.
More information about the Digitalmars-d
mailing list