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


Groups > comp.lang.java.help > #1295

Re: Enum basics

From markspace <-@.>
Newsgroups comp.lang.java.help
Subject Re: Enum basics
Date 2011-11-05 19:55 -0700
Organization A noiseless patient Spider
Message-ID <j94sue$j7l$1@dont-email.me> (permalink)
References (1 earlier) <nospam-E313EF.20444304112011@news.aioe.org> <21054701.30.1320463633638.JavaMail.geo-discussion-forums@prog16> <6at9b7tui212h2jvfmdkka5antnsme1qjb@4ax.com> <16418512.328.1320509703473.JavaMail.geo-discussion-forums@prap37> <rZOdnYZPS4bOOCjTnZ2dnUVZ_v-dnZ2d@earthlink.com>

Show all headers | View raw


On 11/5/2011 2:06 PM, Patricia Shanahan wrote:
> To me, the JLS seems the
> clearest description of Java I have found, and is my go-to document when
> I want to know anything about the core language, as distinct from the
> libraries.
>


For the most part I agree.  The JLS is even unusually clear for a 
specification.  I find it easy to read.

However, that's for the most part.  There are sections I still struggle 
to read correctly, even when I understand the answer already.  For 
example, plowing through the Final Field Semantics part of the JLS 
Memory Model, there's a part where the spec formally defines the 
Dereference Chain and the Memory Chain for final field semantics.  I 
think I understand what they are saying, because I know the answer from 
reading Java Concurrency in Practice, but I'm not sure I could correctly 
derive the answers in JCiP from the description they give.  (However the 
description before that part is pretty clear on the effects of final 
fields.)

Note that this really don't apply to enums, which I think are much more 
clearly written.  Although I admit I didn't try reading that part of the 
JLS again before replying here.

So overall, yes, folks should try to read the JLS, or learn how as Lew 
suggests.  But given that the JLS might not always be 100% clear, it's 
also OK to ask questions.  The overriding concern in this thread seems 
to be that Roedy didn't make an attempt to read or understand the JLS, 
he just expected CLJH to do his (home-) work for him.

Back to comp.lang.java.help | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Enum basics Roedy Green <see_website@mindprod.com.invalid> - 2011-11-04 15:11 -0700
  Re: Enum basics "John B. Matthews" <nospam@nospam.invalid> - 2011-11-04 20:44 -0400
    Re: Enum basics Lew <lewbloch@gmail.com> - 2011-11-04 20:27 -0700
      Re: Enum basics "John B. Matthews" <nospam@nospam.invalid> - 2011-11-05 02:23 -0400
        Re: Enum basics Lew <lewbloch@gmail.com> - 2011-11-05 00:51 -0700
      Re: Enum basics Roedy Green <see_website@mindprod.com.invalid> - 2011-11-05 04:12 -0700
        Re: Enum basics Lew <lewbloch@gmail.com> - 2011-11-05 09:15 -0700
          Re: Enum basics Patricia Shanahan <pats@acm.org> - 2011-11-05 14:06 -0700
            Re: Enum basics Lew <lewbloch@gmail.com> - 2011-11-05 15:54 -0700
            Re: Enum basics Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-11-05 20:43 -0300
            Re: Enum basics markspace <-@.> - 2011-11-05 19:55 -0700
            Re: Enum basics Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-11-05 22:10 -0500
  Re: Enum basics Roedy Green <see_website@mindprod.com.invalid> - 2011-11-05 04:18 -0700

csiph-web