🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

character array initialization

#580
From: Peter GOLDE
Date: Sat, 10 Nov 1990 00:32
15 lines
866 bytes
In section 8.4.2, the C++ standard disallows the legal ANSI C
initialization:

char cv[4] = "asdf";

Since C++ is supposed to be as close as possible to ANSI C
without compromising its features, I don't see what purpose
this restriction serves.  This is a useful feature which
ANSI C very deliberately put into the standard; having
C++ not allow it is a plain nuisance.

Now I have to recode my strings using brace notation: what
a pain!

Peter Golde		petergo%microsoft@uunet.uu.net	
Technical Details
Message-ID: <58962@microsoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!petergo

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!petergo
From: petergo@microsoft.UUCP (Peter GOLDE)
Newsgroups: comp.std.c++
Subject: character array initialization
Message-ID: <58962@microsoft.UUCP>
Date: 10 Nov 90 00:32:31 GMT
Reply-To: petergo@microsoft.UUCP (Peter GOLDE)
Organization: Microsoft Corp., Redmond WA
Lines: 15