James Carlson wrote:
> 
> Garrett D'Amore writes:
> > Piotr Jasiukajtis / estibi wrote:
[snip]
>   - Don't use 'const' with non-pointer arguments.  It's silly there.

Why ? It gives the compiler valueable hints how the argument is/should
be used. AFAIK this was one of the early things which even the old C
compilers (long before ANSI C) tried to optimize when they found a
|const| variable. The old SAS/C compiler documentation even recommends
it...

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [EMAIL PROTECTED]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL <currently fluctuating>
 (;O/ \/ \O;)
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to