Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: glen herrmannsfeldt Newsgroups: comp.lang.c,comp.lang.java.programmer Subject: Re: Prefix and postfix Date: Tue, 8 Dec 2015 01:07:25 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 32 Message-ID: References: <3bbd01d2-f14e-4a3b-98b0-a565591b0373@googlegroups.com> <87610b2jzz.fsf@bsb.me.uk> NNTP-Posting-Host: Uvpb42Ir6g+92oBc7q8CMg.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: tin/1.9.6-20100522 ("Lochruan") (UNIX) (Linux/2.6.32-5-amd64 (x86_64)) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.c:78160 comp.lang.java.programmer:33314 In comp.lang.c Keith Thompson wrote: > ram@zedat.fu-berlin.de (Stefan Ram) writes: >> glen herrmannsfeldt writes: >>>For comparison purposes, Java has assignment expressions as >>>statements. >> In Java, assignment expressions are not statements. > No, but as in C, adding a semicolon to an assignment expression makes > it a statement, specifically an ExpressionStatement. (Unlike C, > Java doesn't permit adding a semicolon to *any* expression to form > a statement, but an assignment is one of the subset of expressions > that can be used in an ExpressionStatement.) Is that what he meant? No, I didn't figure that out. I thought it had something to do with the way it was defined in Java. Yes I know that in some languages semicolons are statement terminators and in others separators, in the former thay are part of the statement, in the latter they aren't. (See the differnnce in IF statements in Pascal and PL/I.) > If you're going to quibble about punctuation in a forum that may > not be familiar with the language you're discussing, it would be > helpful to mention what you're doing. Or even if they are, and just miss the point. -- glen