How to use base class & child class as parameter in one function ?
rikki cattermole
rikki at cattermole.co.nz
Fri May 22 12:21:25 UTC 2020
if (Child child = cast(Child)parent) {
assert(child !is null);
}
More information about the Digitalmars-d-learn
mailing list