Nested Structs (Solution)

Rob T rob at ucora.com
Fri Dec 14 01:47:17 PST 2012


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


More information about the Digitalmars-d mailing list