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


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

Re: Operators

Path csiph.com!aioe.org!.POSTED!not-for-mail
From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: Operators
Date Thu, 8 Sep 2016 19:24:35 -0400
Organization Aioe.org NNTP Server
Lines 35
Message-ID <nqsrvj$15u5$1@gioia.aioe.org> (permalink)
References <operators-20160908014132@ram.dialup.fu-berlin.de>
NNTP-Posting-Host 7SK6yTFfqwlIPNBLl3l7Qg.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 8bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.java.programmer:35575

Show key headers only | View raw


On 9/7/2016 8:45 PM, Stefan Ram wrote:
>       »3.12 Operators
>
>       38 tokens, formed from ASCII characters, are the
>       operators.
>
>       Operator: one of
>
>       =  >  <  !  ~  ?  :  ->
>
>       == >= <= != && || ++ --
>
>       +  -  *  /  &  |  ^  %  <<  >>  >>>
>
>       += -= *= /= &= |= ^= %= <<= >>= >>>=«
>
>     JLS8
>
>   This is the complete sections 3.12.
>
>   Does this mean that »a?b:c« contains /two/
>   operators, but »(int)3.2«, »(3)« and »f(x)«
>   do not contain an operator?

I think that common terminology among Java developers
would be that:

?: is a single operator
cast is not an operator
parenthesis are not operators
method call is not an operator

Arne

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


Thread

Re: Operators Arne Vajhøj <arne@vajhoej.dk> - 2016-09-08 19:24 -0400
  Re: Operators Roedy Green <inquiry@mindprod.com> - 2016-09-12 22:13 -0700
  Re: Operators Lew <lewbloch@gmail.com> - 2016-09-13 17:47 -0700
    Re: Operators Arne Vajhøj <arne@vajhoej.dk> - 2016-09-13 22:15 -0400
    Re: Operators Arne Vajhøj <arne@vajhoej.dk> - 2016-09-13 22:18 -0400
    Re: Operators Roedy Green <inquiry@mindprod.com> - 2016-09-13 19:51 -0700
      Re: Operators Arne Vajhøj <arne@vajhoej.dk> - 2016-09-14 20:23 -0400

csiph-web