On 4 May 2000, Lars Gullik Bjønnes wrote:

> "Asger K. Alstrup Nielsen" <[EMAIL PROTECTED]> writes:
> | For instance,
> | the const-version can in a few lucky cases result in more optimized
> | code.
> 
> This is not even micro-optimization, closer to nano-optimization. And
> as such pointless.

If you ignore the optimisation possibilities and look at it purely as info
for other programmers -- making it obvious that it should never be
necessary to change the values being passed.  They are const.  If they
were strings I would have used "string const &" but a "int const &" costs
more than passing by value.  So I used "int const" to convey the
information that the parameters are not changed -- having already applied
the optimisation of passing the ints by value instead of by reference.

So IMO, Bullets.h is wrong and Bullets.C is right.

Allan. (ARRae)

Reply via email to