Date: Fri, 26 Apr 2002 20:07:07 +0300 From: Ruslan Ermilov <ru@FreeBSD.ORG> To: Barney Wolff <barney@tp.databus.com> Cc: Igor M Podlesny <poige@morning.ru>, net@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG Subject: Re: patch -- An ingress filter (RFC2827) Message-ID: <20020426170707.GA87482@sunbay.com> In-Reply-To: <20020426130139.A34980@tp.databus.com> References: <20020414180447.A93954@mars-gw.morning.ru> <20020426091620.GA18917@sunbay.com> <20020426213657.D85230@mars-gw.morning.ru> <20020426164427.GA82505@sunbay.com> <20020426130139.A34980@tp.databus.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 26, 2002 at 01:01:39PM -0400, Barney Wolff wrote: > When did this change? "const char *ptr" used to mean that the thing > pointed to cannot be changed, but the pointer itself can be. So far > as I know, it still does. Educate me, please, if that's no longer so. >=20 > On Fri, Apr 26, 2002 at 07:44:27PM +0300, Ruslan Ermilov wrote: > > > > 3. Double `const' doesn't do any good. (I was once confused about= this too.) > > >=20 > > > (const char *const ptr? > > >=20 > > > Why? I deem `const' can't make a code worse, only better, cause it ma= kes an > > > additional description of variables/functions/code/algo...) > > >=20 > > Because this is merely equivalent to "const char *ptr". >=20 Someone already pointed that out. Me stands corrected. :-) There's a single example of this in n869.txt ISO C-99 draft I have. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --GvXjxJ+pjyke8COw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8yYk7Ukv4P6juNwoRAiI/AJ0QrS3+DTBase+Ail5ef0sD4kTimQCeI7Bn kjZVAbQWiTOa70+bRPhuG2g= =h1dW -----END PGP SIGNATURE----- --GvXjxJ+pjyke8COw-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020426170707.GA87482>