The cast(signed), cast(unsigned) feature proposal

Mrzlga bulletproofchest at gmail.com
Fri Jun 7 14:33:59 PDT 2013


A reason for cast(signed) is to discourage the user from writing:

     cast(int) x;

Because we can't grep for the word "signed",
We have to search for "cast( )" only!

     cast(int) x    // hides the intention, hard to search for!

Yet we can easily grep for:

     cast(signed)


More information about the Digitalmars-d mailing list