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


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

Re: A name and its relation with two types

Started byEric Sosman <esosman@comcast-dot-net.invalid>
First post2017-10-30 18:14 -0400
Last post2017-10-30 18:14 -0400
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: A name and its relation with two types Eric Sosman <esosman@comcast-dot-net.invalid> - 2017-10-30 18:14 -0400

#37614 — Re: A name and its relation with two types

FromEric Sosman <esosman@comcast-dot-net.invalid>
Date2017-10-30 18:14 -0400
SubjectRe: A name and its relation with two types
Message-ID<ot887a$poo$1@dont-email.me>
On 10/30/2017 5:53 PM, Stefan Ram wrote:
>    The field »java.lang.System.out« has a tight relation with
>    two types: »java.lang.System« (as »java.lang.System.out« is
>    a field of »java.lang.System«) and »java.io.PrintStream«
>    (which is the type of the expressions »java.lang.System.out«).
> 
>    Can someone help me to find appropriate and clear words for
>    the ellipses in the following two sentences?
> 
>    »java.lang.System« is the ... of »java.lang.System.out«.
>    »java.io.PrintStream« is the ... of »java.lang.System.out«.

     How about "class containing" and "type of", respectively?

     ... but I'm not sure it's worth a whole lot of fuss.  I can't
see any difference between your example and

	package circus;
	class Clown {
	    public static String name = "Bozo";
	}

	»circus.Clown is the class containing circus.Clown.name«.

	»java.lang.String is the type of circus.Clown.name«.

... which seems so perfectly ordinary and obvious as not to merit
a whole lot of commentary.  YMMV.

-- 
esosman@comcast-dot-net.invalid
Eleven hundred seventy-eight days to go.

[toc] | [standalone]


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


csiph-web