Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!umd5!brl-adm!cmcl2!phri!bc-cis!john From: john@bc-cis.UUCP (John L. Wynstra) Newsgroups: comp.lang.c Subject: Re: New Features: ++(expr) Message-ID: <1102@bc-cis.UUCP> Date: 9 Feb 88 07:40:08 GMT References: <386@osupyr.UUCP> Reply-To: john@bc-cis.UUCP (John L. Wynstra) Organization: Brooklyn College of CUNY, Brooklyn, NY Lines: 21 Summary: whyfor, fer goshsakes? In article <386@osupyr.UUCP> ddc@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@bc-cis.UUCP { eg, rutgers!cmcl2!phri!bc-cis!john }