How do you return a subclass instance from a base class method?

MorteFeuille123 MorteFeuille123 at mrt.rt
Thu Nov 17 11:57:25 UTC 2022


On Thursday, 17 November 2022 at 06:48:13 UTC, Daniel Donnelly, 
Jr. wrote:
> On Thursday, 17 November 2022 at 05:21:05 UTC, MorteFeuille123 
> wrote:
>> On Thursday, 17 November 2022 at 04:25:13 UTC, Daniel 
>> Donnelly, Jr. wrote:
>>> [...]
>>
>> You can use TypeInfoClass:
>>
>> [...]
>
> I don't get it - you never made use of b1 or b2...

yeah this was oversimplified on purpose, I did not realize that 
this coulmd be confusing. I dont know what you do with your 
constructor parameter either, would I say, as a second 
explanation.


More information about the Digitalmars-d-learn mailing list