On 19.03.2014 20:55, Bald Eagle wrote:
> I seem to be having difficulties predicting the results of this loop.
Note that for the case (Y=7 & (X<3 | X>5) ) you increase Y to "skip"
but still add the cylinder at Y = 8.
In general increasing a loop counter arbitrarily during the loop
is error-prone. A better way to write might be
#if ( !( (Y=1 | Y=7) & (X<3 | X>5) ) &
( !( (Y=2 | Y=6) & (X=1 | X=7) ) )
cylinder
#end
Post a reply to this message
|