<div class="gmail_quote">On Wed, Aug 17, 2011 at 11:34, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
But my question remains, should we const declare function arguments?</blockquote></div><br><div>No, the prototype should never use const for stack arguments (pointer to const is totally different and should be used anywhere that it is correct).</div>
<div><br></div><div>I don't know any responsible libraries that const-ify value parameters in prototypes. I think it most commonly arises from ignorance of, or sloppiness with, the actual semantics of the C language.</div>