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


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

Re: Prefix and postfix

From glen herrmannsfeldt <gah@ugcs.caltech.edu>
Newsgroups comp.lang.c, comp.lang.java.programmer
Subject Re: Prefix and postfix
Date 2015-12-08 01:07 +0000
Organization Aioe.org NNTP Server
Message-ID <n45agc$mc8$1@speranza.aioe.org> (permalink)
References (8 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>

Cross-posted to 2 groups.

Show all headers | View raw


In comp.lang.c Keith Thompson <kst-u@mib.org> wrote:
> 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.)

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

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next 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