if (Child child = cast(Child)parent) { assert(child !is null); }
Re: How to use base class & child class as parameter in one function ?
rikki cattermole via Digitalmars-d-learn Fri, 22 May 2020 05:25:31 -0700
- How to use base class & c... Vinod K Chandran via Digitalmars-d-learn
- Re: How to use base clas... rikki cattermole via Digitalmars-d-learn
- Re: How to use base ... Vinod K Chandran via Digitalmars-d-learn
- Re: How to use b... Steven Schveighoffer via Digitalmars-d-learn
- Re: How to u... Vinod K Chandran via Digitalmars-d-learn
- Re: How... Adam D. Ruppe via Digitalmars-d-learn
- Re: How... Steven Schveighoffer via Digitalmars-d-learn