Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #33351

Re: Prefix and postfix

From Jan Burse <janburse@fastmail.fm>
Newsgroups comp.lang.java.programmer
Subject Re: Prefix and postfix
Date 2015-12-15 22:13 +0100
Organization albasani.net
Message-ID <n4pvqm$4ad$1@news.albasani.net> (permalink)
References (9 earlier) <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> <lnr3iynisf.fsf@kst-u.example.com>

Show all headers | View raw


Keith Thompson schrieb:
> 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.
>

Yep, see here:
https://docs.oracle.com/javase/specs/jls/se8/html/jls-14.html#jls-ExpressionStatement

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


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