Thank you!
Tejas
notrealemail at gmail.com
Wed Sep 8 12:11:06 UTC 2021
On Wednesday, 8 September 2021 at 11:30:48 UTC, Mike Parker wrote:
> On Wednesday, 8 September 2021 at 08:27:13 UTC, Tejas wrote:
>
>> And what I'm saying is that the user _doesn't_ know that
>> they're getting a temporary unless they're aware that
>> `struct`s are value types. And in this particular case,
>> `opAssign` isn't defined.
>>
>> So I personally think this warrants a warning at the very
>> least.
>>
>
> Then the thing to do would be to open an issue in Bugzilla for
> an enhancement request and see what comes of it:
>
> https://issues.dlang.org/
Done
https://issues.dlang.org/show_bug.cgi?id=22290
More information about the Digitalmars-d
mailing list