Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c,comp.lang.java.programmer Subject: Re: Prefix and postfix Followup-To: comp.lang.java.programmer Date: Mon, 07 Dec 2015 11:46:40 -0800 Organization: None to speak of Lines: 22 Message-ID: References: <3bbd01d2-f14e-4a3b-98b0-a565591b0373@googlegroups.com> <3edeeee4-2714-403b-a3d9-ed261c76f242@googlegroups.com> <87610b2jzz.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="25379"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8YuMYgkpc5hPzcc27z9F0" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:fFU0FOw+ToFbfd6dUHwQcIm2Wi4= sha1:x71TJfj716XYa+wcd/exyITgDXk= Xref: csiph.com comp.lang.c:78122 comp.lang.java.programmer:33313 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.) 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. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"