New Features: ++(expr)
John L. Wynstra
john at bc-cis.UUCP
Tue Feb 9 17:40:08 AEST 1988
In article <386 at osupyr.UUCP> ddc at osupyr.UUCP (Don Comeau) writes:
|
|Since everyone else is suggesting their addition to C, here is one I
|think would be useful. Why are ++ and -- still limited to lvalues? I
|think ++expresion should be an expression which has the value
|expression+1.
|
|Are there any good reason why this hasn't been done?
|
Yes, can you say redundant? You said it yourself, the thing is
`(expression)+1', why have another name for the same thing? And as to
the traditional use, why would ++ or -- ever apply to anything but
lvalues (remembering that *(pointer-expression) is one)?
You guys on the ANSI committee, leave my C alone! (I like it K&&R
thank'ee, black, no sugar, please.)
--
John L. Wynstra
US mail: Apt. 9G, 43-10 Kissena Blvd., Flushing, N.Y., 11355
UUCP: john at bc-cis.UUCP { eg, rutgers!cmcl2!phri!bc-cis!john }
More information about the Comp.lang.c
mailing list