what if return returned subclasses

Adam Ruppe destructionator at gmail.com
Thu Oct 21 00:39:17 UTC 2021


On Thursday, 21 October 2021 at 00:01:24 UTC, H. S. Teoh wrote:
> What would you do about this case?
>
> 	Object choice(return Object a, return Object b, int cond)

If there's two you'd have to do the common type.


More information about the Digitalmars-d mailing list