Path: utzoo!utgpu!attcan!uunet!husc6!spdcc!ima!haddock!karl From: karl@haddock.ISC.COM (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: const in array bound expression Keywords: const ANSI constant expression array Message-ID: <5801@haddock.ISC.COM> Date: 4 Aug 88 01:54:28 GMT References: <123@peritus.UUCP> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 10 In article <123@peritus.UUCP> preston@peritus.UUCP (Preston Gardner) writes: >What constitutes a constant expression under the new ANSI standard? The >following should be legal: > const int i = 5; > int a[i]; It isn't, though. I believe this is what Bjarne meant when he said that when X3J11 took |const| from C++, they "watered it down". Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint