🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4356

Re: String literal as initializer

#4356
From: Larry Jones
Date: Mon, 13 Nov 1995 22:08
12 lines
997 bytes
In article <4859t8$5o0@tesla.netline.net>, daveg@netline.net (Dave Goodman) writes:
> There is one object ('s').  The question boils down to whether the
> standard considers a string literal used as an initializer to be one
> initializer, or several (an initializer-list).

Several.  There's a (pending?) Defect Report / Technical Corrigendum
that clarifies that a string literal is equivalent to a brace-enclosed
list of characters.
----
Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH  45150-2789  513-576-2070
larry.jones@sdrc.com
I'm so disappointed. -- Calvin
Technical Details
Message-ID: <488flk$h7n@info1.sdrc.com>
Path: arc1-ca.pugleaf.net!sdrc.com!thor!scjones
References: <4859t8$5o0@tesla.netline.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sdrc.com!thor!scjones
From: larry.jones@sdrc.com (Larry Jones)
Newsgroups: comp.std.c
Subject: Re: String literal as initializer
Date: 13 Nov 1995 22:08:52 GMT
Organization: SDRC Engineering Services
Distribution: world
Message-ID: <488flk$h7n@info1.sdrc.com>
References: <4859t8$5o0@tesla.netline.net>
NNTP-Posting-Host: thor.sdrc.com
Keywords: string literal, initializer
Originator: scjones@thor