Operator declaration
Dom Disc
dominikus at scherkl.de
Sun May 31 08:54:39 UTC 2026
On Friday, 29 May 2026 at 10:56:51 UTC, Nick Treleaven wrote:
> On Sunday, 26 April 2026 at 03:09:39 UTC, Meta wrote:
>> This is about the integer promotion rules, that people have
>> been complaining about for years.
>
> Can you give an example of what you think should work but
> doesn't?
```d
byte x = 7;
x = -x; // cannot convert -x of type int to byte
```
Just one of the worst.
More information about the Digitalmars-d-learn
mailing list