🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Array Initialization

#2693
From: Joe Walker
Date: Tue, 21 Nov 1995 16:02
25 lines
1492 bytes
Has allowing the following been considered?

  int  length = strlen (some_string);
  char buffer [ length ];

  // ...

I.E. allowing non const array sizing.

g++ can do it, so I'd be surprised if this has not been considered,
but it does not seem to be in the DWP. Does anyone know the story?

Thanks,
Joe.

-- 
  ____
 |___ | ___  ___   EMail: walkerjj@sweng.ecid.cig.mot.com
 _  | |/ _ \| __|  SMail: Motorola, 16 Euroway, Blagrove, SWINDON SN58YQ
| |_| | (_) | _|   Tel:   [+44/0] 793 54 5346
 \___/ \___/|___|  Fax:   [+44/0] 793 54 1228

[ 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: <30B1CB7E.41C67EA6@ecid.cig.mot.com>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
From: Joe Walker <walkerjj@ecid.cig.mot.com>
Newsgroups: comp.std.c++
Subject: Array Initialization
Date: 21 Nov 1995 16:02:10 GMT
Organization: Motorola Ltd., European Cellular Infrastructure Division
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <30B1CB7E.41C67EA6@ecid.cig.mot.com>
NNTP-Posting-Host: taumet.eng.sun.com
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; conversions="7bit"
Content-Transfer-Encoding: 7bit
X-Nntp-Posting-Host: jurua.sweng.ecid.cig.mot.com
X-Mailer: Mozilla 2.0b1J (X11; I; SunOS 4.1.3_U1 sun4m)
To: meredith@ecid.cig.mot.com
X-Lines: 21
Content-Length: 543
Originator: clamage@taumet