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

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Jun 7 17:09:35 PDT 2013


On 6/7/13 5:41 PM, Mrzlga wrote:
> Andrei, what do you think about the unsigned(x) not showing up on greps
> for 'cast'? No problem? Is the grep irrelevant? Not all casts should be
> marked as a cast?
>
> People told me the grepping was important, so I tried to work their idea
> in.
>
>
> I understand, you can still search for:
> "signed(" // signed or unsigned
> "cast(u" // unsigned
> "cast( ... every type ... )" // trying to find signed conversions
>
>
> But I was trying to make the thing more predictable altogether.

Grepping is useful for identifying dangerous patterns. What a dangerous 
pattern is varies according to the person, but it's not possible to grep 
for everything that everyone considers dangerous.

Andrei


More information about the Digitalmars-d mailing list