unnecessary casts

Namespace rswhite4 at googlemail.com
Wed Jan 30 15:13:19 PST 2013


On Wednesday, 30 January 2013 at 22:57:39 UTC, bearophile wrote:
> On Wednesday, 30 January 2013 at 22:49:01 UTC, Namespace wrote:
>> Is the compiler (dmd) fit enough to detect and avoid 
>> unnecessary casts?
>
> I think the most important casts most worth avoiding are the 
> ones you write in the code (because they are a source of bugs), 
> not the ones the compiler performs :-)
>
> Bye,
> bearophile

I'm talking about exactly these kind of casts. See my example.


More information about the Digitalmars-d-learn mailing list