"For" infinite loop
Marco Leise
Marco.Leise at gmx.de
Mon Aug 13 01:17:43 PDT 2012
Am Mon, 13 Aug 2012 00:53:43 +0200
schrieb "bearophile" <bearophileHUGS at lycos.com>:
> It looks better. But you every time you use a cast in D you need
> to be careful, because they are like a sharp tool with almost no
> safeties.
>
> Bye,
> bearophile
So true. It happens to me sometimes that I cast away const although I just want to cast a type. It's also a reason I am not a big fan of considering "cast(ubyte) 0" normal. It is pragmatic though.
--
Marco
More information about the Digitalmars-d-learn
mailing list