how does the JLS deal with the >> ambiguity?

Adam Megacz adam@megacz.com
Thu Sep 15 21:42:00 GMT 2005


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /