Tired by deprecation message for unary operators on 8/16 bit vars ? A simple solution
H. S. Teoh
hsteoh at quickfur.ath.cx
Thu Jun 7 17:18:51 UTC 2018
On Thu, Jun 07, 2018 at 05:02:09PM +0000, Johan Engelen via Digitalmars-d wrote:
> On Thursday, 7 June 2018 at 15:18:49 UTC, H. S. Teoh wrote:
> >
> > Now all you have to do is to add operator overloading to make the
> > wrapper type infectious, and a convenience function that can be
> > easily typed, and you get:
>
> [...]
>
> I'd like to have this in the stdlib, what are the chances?
[...]
Just copy-n-paste my code into your local Phobos repo and submit a PR.
;-)
T
--
Creativity is not an excuse for sloppiness.
More information about the Digitalmars-d
mailing list