what if return returned subclasses
12345swordy
alexanderheistermann at gmail.com
Thu Oct 21 14:43:03 UTC 2021
On Thursday, 21 October 2021 at 00:40:21 UTC, Adam Ruppe wrote:
> 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.
You want the ability to create new types?
-Alex
More information about the Digitalmars-d
mailing list