[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: rev 7365 - in trunk/subversion: include libsvn_subr libsvn_wc

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-10-09 20:36:10 CEST

kfogel@collab.net writes:

> julianfoad@tigris.org writes:
>> Log:
>> Remove "const" where it was over-zealously used on some function parameters
>> that are passed by value. It has no meaning in the interface, and only
>> exposes an artifact of the current implementation.
>
> Doesn't 'const' prevent the callee from changing the value of the
> argument locally?

No, 'const' in the function prototype doesn't do that.

   void svn_client_foo (const int x);
   void svn_client_foo (int x) { x = 1; }

Is perfectly valid C.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 9 20:36:58 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.