Skip site navigation (1)Skip section navigation (2)
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

[-- Attachment #1 --]
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.
> 
> 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.)
> > > 
> > > (const char *const ptr?
> > > 
> > > Why? I deem `const' can't make a code worse, only better, cause it makes an
> > > additional description of variables/functions/code/algo...)
> > > 
> > Because this is merely equivalent to "const char *ptr".
> 
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,
-- 
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

[-- Attachment #2 --]
-----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-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020426170707.GA87482>