what if return returned subclasses

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


On Wednesday, 20 October 2021 at 23:57:01 UTC, Dennis wrote:
> No, `return` doesn't imply that the parameter is returned. Even 
> if the function is `pure` and there's only one parameter, it 
> could still return a new object or a field of the parameter.

Ah, I think I knew that but it didn't come to mind. Blah, I guess 
that kills it, at least kills reusing the syntax for it.


More information about the Digitalmars-d mailing list