Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2002 14:47:56 -0500
From:      Peter Dufault <dufault@hda.hda.com>
To:        Mike Barcroft <mike@FreeBSD.ORG>
Cc:        "Jacques A. Vidrine" <nectar@FreeBSD.ORG>, Chuck Rouillard <chuckr@opus.sandiegoca.ncr.com>, FreeBSD-Standards <freebsd-standards@FreeBSD.ORG>
Subject:   Re: pathchk - review
Message-ID:  <20020219144756.A636@hda.hda.com>
In-Reply-To: <20020217004339.J57687@espresso.q9media.com>; from mike@FreeBSD.ORG on Sun, Feb 17, 2002 at 12:43:39AM -0500
References:  <20020129210829.GC50337@madman.nectar.cc> <20020205232519.N7805-101000@opus.sandiegoca.ncr.com> <20020212170303.B55750@espresso.q9media.com> <20020217020217.GB46829@madman.nectar.cc> <20020217004339.J57687@espresso.q9media.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> The type is a pointer to a read-only string.  The type he was really
> looking for was a read-only pointer to a read-only string:
> 
> const char * const VARIABLE;
> 
> But as I suggested, manifest constants are better.

No, debuggers don't handle them well.  "When possible, avoid the
preprocessor" IMHO.  The same applies to magic numbers versus enums.

Peter

--
Peter Dufault (dufault@hda.com)   Realtime development, Machine control,
HD Associates, Inc.               Fail-Safe systems, Agency approval

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-standards" in the body of the message




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