|
|
Vadim Sytnikov <syt### [at] rucom> wrote:
> And now I have to use Tcl/Tk scripts for my build procedure to sort out
> warnings. Tell me, is that OK?
Why don't you just turn off *certain* warnings instead of turning them all
off?
But yes, I agree that at least the implicit conversions from double to
int should be changed to explicit. This is a good coding habit (it kind of
"comments" the code in such a way that a person reading it will see that
"yes, this conversion is deliberate, not a mistake/overlook").
Letting the conversions be implicit is bad not only because of the
warnings, but because it makes it more unclear whether a certain implicit
conversion is the desired thing or a mistake.
Sometimes an implicit conversion from a bigger type to a smaller one
(where information is lost) is indeed a mistake from the part of the coder
and may cause a bug.
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
|