char constant?

Tainter tainter at ihlpg.ATT.COM
Mon Apr 18 05:33:00 AEST 1988


In article <11072 at mimsy.UUCP>, chris at mimsy.UUCP (Chris Torek) writes:
> In article <5206 at ihlpg.ATT.COM> tainter at 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 at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.lang.c mailing list