Article View: comp.std.c++
Article #2793Re: Array Initialization
From: Jerry Coffin
Date: Fri, 01 Dec 1995 01:12
Date: Fri, 01 Dec 1995 01:12
33 lines
1671 bytes
1671 bytes
fjh@munta.cs.mu.OZ.AU (Fergus Henderson) wrote:
>>IMHO the most important reason to disallow RT-sized arrays
>>is that then sizeof also becomes a RT-size.
>A fair point -- but would that really cause any problems?
Unless I'm missing something, a run-time version of sizeof would likely
have to evaluate its argument, so you'd basically end up with two
different sizeof's - one that happened at compile time, didn't evaluate
its argument and allowed use of expressions that can't be evaluated
legally.
It'd be interesting of anybody from Metaware were to jump in on this one
- their Direct to SOM system on OS/2 already does run-time evaluation of
sizeof at least part of the time, so their information on the subject
would be less speculative than mine.
Later,
Jerry.
/* I can barely express my own opinions; I certainly can't
* express anybody else's.
*
* The universe is a figment of its own imagination.
*/
---
[ 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:
<49lidc$bjc@natasha.rmii.com>Path:
arc1-ca.pugleaf.net!128.32.155.1!mattReferences:
<496gnn$hdh@treflan.shout.net> <DIpo69.DGF@falcon.daytonoh.attgis.com> <49felu$68m@sunsystem5.informatik.tu-muenchen.de> <9533411.19718@mulga.cs.mu.OZ.AU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt From: jcoffin@rmii.com (Jerry Coffin) Newsgroups: comp.std.c++ Subject: Re: Array Initialization Date: 01 Dec 1995 01:12:07 GMT Organization: TAEUS Approved: matt@physics2.Berkeley.EDU (Matt Austern) Message-ID: <49lidc$bjc@natasha.rmii.com> References: <496gnn$hdh@treflan.shout.net> <DIpo69.DGF@falcon.daytonoh.attgis.com> <49felu$68m@sunsystem5.informatik.tu-muenchen.de> <9533411.19718@mulga.cs.mu.OZ.AU> NNTP-Posting-Host: physics2.berkeley.edu