Operator declaration
Andy Valencia
dont at spam.me
Sun May 31 13:28:07 UTC 2026
On Sunday, 31 May 2026 at 08:54:39 UTC, Dom Disc wrote:
> On Friday, 29 May 2026 at 10:56:51 UTC, Nick Treleaven wrote:
>> Can you give an example of what you think should work but
>> doesn't?
>
> byte x = 7;
> x = -x; // cannot convert -x of type int to byte
Previously discussed, including a workaround I hadn't discovered
for myself:
https://forum.dlang.org/post/ftdqkqritjwkcasldojt@forum.dlang.org
Andy
More information about the Digitalmars-d-learn
mailing list