Path: utzoo!mnetor!uunet!ncc!alberta!att-ih!ihnp4!ihlpg!tainter From: tainter@ihlpg.ATT.COM (Tainter) Newsgroups: comp.lang.c Subject: Re: char constant? Message-ID: <5214@ihlpg.ATT.COM> Date: 17 Apr 88 19:33:00 GMT References: <4418@hoptoad.uucp> <3432@haddock.ISC.COM> <7677@brl-smoke.ARPA> <11072@mimsy.UUCP> Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 12 In article <11072@mimsy.UUCP>, chris@mimsy.UUCP (Chris Torek) writes: > In article <5206@ihlpg.ATT.COM> tainter@ihlpg.ATT.COM (Tainter) writes: > -Is "ABCD"[0] legal ANSI C? > Yes. It is not, however, a constant expression (see section 3.4). Well then, fix the standard! Quick before it gets cast in concrete! There is no possbile excuse for this not being a constant expression. Every component is a constant, why isn't the result a constant? > In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) > Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris