The cast(signed), cast(unsigned) feature proposal
Jesse Phillips
Jesse.K.Phillips+D at gmail.com
Fri Jun 7 14:42:04 PDT 2013
On Friday, 7 June 2013 at 21:34:00 UTC, Mrzlga wrote:
> 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)
Not convenient, but:
cast(Signed!(typeof(x))
More information about the Digitalmars-d
mailing list