Object "A" inherited object "B". And you need to return the object link "B".

Adam D. Ruppe destructionator at gmail.com
Thu Feb 6 12:37:01 UTC 2020


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.


More information about the Digitalmars-d-learn mailing list