🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2341

Re: Two standards questions

#2341
From: John Rickard
Date: Sun, 29 Oct 1995 15:08
26 lines
1629 bytes
Steve Clamage (clamage@Eng.Sun.COM) wrote:
 
: >const char *messages[]={"Fun", "Stuff};
: >const char fun[]="message";
: >
: >messages is made external, and fun is internal.  This seems wrong to me,
: >both should be internal.
:
: No, GNU is correct. "messages" is not const, so it is made external.
: That is "messages" is a non-const pointer to a const char. On the
: other hand, "fun" is a const array of chars.
 
I'm sure it's intended that "fun" should have internal linkage.  But
from a casual perusal of the draft (April working paper), it seems to
me that "fun" is not a const array of char, but an array of const
char, and that "fun" itself is _not_ const (although "fun[0]" is), and
so it has external linkage.
 
Have I missed something, or is this a mistake in the draft?

-- 
John Rickard
---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <199510291313.NAA10621@anchovy.atml.co.uk>
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
References: <4kTmzbC00iVD0Bmn4x@andrew.cmu.edu> <45p7cg$oil@engnews2.Eng.Sun.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
Date: 29 Oct 95 15:08:52 GMT
Approved: fjh@cs.mu.oz.au
Organization: -
Newsgroups: comp.std.c++
Return-Path: <daemon@migs.UCAR.EDU>
X-Original-Date: Sun, 29 Oct 1995 13:13:11 GMT
From: John Rickard <jrr@atml.co.uk>
Message-ID: <199510291313.NAA10621@anchovy.atml.co.uk>
Subject: Re: Two standards questions
References: <4kTmzbC00iVD0Bmn4x@andrew.cmu.edu> <45p7cg$oil@engnews2.Eng.Sun.COM>
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBFAgUBMJOZFuEDnX0m9pzZAQGOUQF/cB0C8V+lxyUv+UQJC48P/ipMEiEjktc5
 WVtxTSSJb89vQF/oARql6aYW0W6GABC+
 =D3c/