This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how does the JLS deal with the >> ambiguity?


Eric Blake <ebb9@byu.net> writes:
> though it can parse it).  Java does have advantages over C++ in that the
> contents of <foo<bar>> are more constrained (ie, an arithmetic expression
> never appears inside of a generic type name, so the presence of an
> arithmetic operator automatically means parsing the >> token as a shift
> operator instead of a double generic name closer).

Ah, I see.  Yeah, that makes sense.  Thanks!

  - a


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]