disabling unary "-" for unsigned types

Walter Bright newshound1 at digitalmars.com
Mon Feb 15 17:02:10 PST 2010

Michel Fortin wrote:
> That one is easy to fix. Add a "signed(x)" template function returning 
> the signed counterpart of x. You could even insert a runtime range check 
> if you really wanted to.

Yes, I mentioned that at the end of that post, and the reasons why it is 
  not very appealing.

More information about the Digitalmars-d mailing list