Tired by deprecation message for unary operators on 8/16 bit vars ? A simple solution

Basile B. b2.temp at gmx.com
Thu Jun 7 13:42:17 UTC 2018


I don't know if this is a bug but this works:

```
module runnable;

struct Byte { byte value; alias value this;}

void main()
{
     {Byte b; auto c = ~b;} // no message
     {byte b; auto c = ~b;} // deprecation...
}
```

---
Baz


More information about the Digitalmars-d mailing list