Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jan 2001 13:31:20 +0000
From:      Tony Finch <dot@dotat.at>
To:        Matthew Jacob <mjacob@feral.com>
Cc:        =?iso-8859-1?Q?G=E9rard_Roudier?= <groudier@club-internet.fr>, Peter Wemm <peter@netplex.com.au>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/isp isp.c
Message-ID:  <20010102133120.M47732@hand.dotat.at>
In-Reply-To: <Pine.LNX.4.21.0012301409020.5921-100000@zeppo.feral.com>
References:  <Pine.LNX.4.10.10012302144150.1172-100000@linux.local> <Pine.LNX.4.21.0012301409020.5921-100000@zeppo.feral.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Matthew Jacob <mjacob@feral.com> wrote:
>
>The whole approach ANSI seems to have taking is moronic since it's very clear
>to me that either you should have clear object attributes, or you should have
>the most permissive interpretation of default attributes. If you want to make
>an object have some other than default attribute, be specific- don't be
>ambiguous.

It is actually clear in this case: literal strings are arrays of const
chars and therefore should not be modified. The ambiguity you are
complaining about is there so that implementers can either enforce
this or not, depending on hardware and/or OS support.

>Would it still be an error if the declaration had been static instead of
>(implicit auto)?

Yes.

Tony.
-- 
f.a.n.finch    fanf@covalent.net    dot@dotat.at
"There are flying saucers. There's no doubt they are
in our skies. They've been there for some time."


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




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