Object "A" inherited object "B". And you need to return the object link "B".
Mihail Lorenko
miha.uva at ya.ru
Thu Feb 6 13:05:18 UTC 2020
On Thursday, 6 February 2020 at 12:37:01 UTC, Adam D. Ruppe wrote:
> On Thursday, 6 February 2020 at 12:15:17 UTC, Mihail Lorenko
> wrote:
>>> B* b;
>
> A pointer to a class is a rare thing in B since they are
> already automatic references. Just use `B b;` and ten `b = a`
> will just work.
Thanks for the answer!
Well, apparently I have to get around my problem. Thanks again!
More information about the Digitalmars-d-learn
mailing list