C subscripts

adm at cbneb.UUCP adm at cbneb.UUCP
Sat Dec 1 11:39:01 AEST 1984


>Now, BEFROE the flames start I KNOW the comma operator exists.
>This is not overloading because subscripts are expressions, not statements.
>So don't start quoting K&R pg 192 to me.

You're wrong; it IS overloading BECAUSE subscripts are expressions.
Thus, "array[t=3, t+2]" is equivalent to "array[5]".  Your proposed use of
the comma would therefore be ambiguous.



More information about the Comp.lang.c mailing list