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


Groups > comp.lang.java.programmer > #38639 > unrolled thread

Re: What is a "primary expression"?

Started byMartin Gregorie <martin@mydomain.invalid>
First post2018-10-07 18:02 +0000
Last post2018-10-07 18:02 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.java.programmer

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: What is a "primary expression"? Martin Gregorie <martin@mydomain.invalid> - 2018-10-07 18:02 +0000

#38639 — Re: What is a "primary expression"?

FromMartin Gregorie <martin@mydomain.invalid>
Date2018-10-07 18:02 +0000
SubjectRe: What is a "primary expression"?
Message-ID<ppdho5$7hc$1@news.albasani.net>
On Sun, 07 Oct 2018 16:24:09 +0000, Stefan Ram wrote:

> What is a "primary expression"?
> 
This seems to be a fairly clear definition from 
http://web.deu.edu.tr/doc/oreily/java/langref/ch04_js.htm

    Primary expressions are constructs that fetch or create values, but
    do not directly perform computations on them

So, I think that this is also a primary expression:

    public float almostPi() { return 22.0/7.0 }

At least, some other languages than Java think would accept it as one, 
and possibly would accept this too:

r.nextDouble();

where R was declared as: Random r = new Random(); 

Both my examples match the definition I quoted.


-- 
Martin    | martin at
Gregorie  | gregorie dot org

[toc] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web