Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #33313
| From | Keith Thompson <kst-u@mib.org> |
|---|---|
| Newsgroups | comp.lang.c, comp.lang.java.programmer |
| Subject | Re: Prefix and postfix |
| Followup-To | comp.lang.java.programmer |
| Date | 2015-12-07 11:46 -0800 |
| Organization | None to speak of |
| Message-ID | <lnr3iynisf.fsf@kst-u.example.com> (permalink) |
| References | (8 earlier) <n43pfv$v8r$1@dont-email.me> <n43qke$409$1@dont-email.me> <n43ruv$8l2$1@dont-email.me> <n43vkh$fbr$1@speranza.aioe.org> <expressions-20151207135932@ram.dialup.fu-berlin.de> |
Cross-posted to 2 groups.
Followups directed to: comp.lang.java.programmer
ram@zedat.fu-berlin.de (Stefan Ram) writes:
> glen herrmannsfeldt <gah@ugcs.caltech.edu> 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 <http://www.ghoti.net/~kst>
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"
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Prefix and postfix Keith Thompson <kst-u@mib.org> - 2015-12-07 11:46 -0800 Re: Prefix and postfix glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-12-08 01:07 +0000 Re: Prefix and postfix Jan Burse <janburse@fastmail.fm> - 2015-12-15 22:13 +0100
csiph-web