RFC: Lose use of $ and . in [cd]tor labels

Per Bothner per@bothner.com
Fri Mar 23 21:19:00 GMT 2001


Jason Merrill <jason@redhat.com> writes:
> >>>>> "Bryce" == Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
>> > Jason Merrill wrote:
>> >> Would it be appropriate to change the Java frontend to stop using '$' in
> >> names that get mangled?
>> > Not really: the use of "$" as a nested class namespace separator (and as a
> > marker for artificial fields/parameters) is a part of the Java bytecode
> > ABI.
>> OK, that's a good reason. Are they all represented as 'name$'?

In Java, '$' is treated as a letter "for historical reasons" though it
"should only be used in mechanically generated Java code or, rarely,
to access pre-existing names on legacy systems." (From the 1st edition
language spec.)
Hence the answer to your question is "no",
-- 
	--Per Bothner
per@bothner.com http://www.bothner.com/~per/


More information about the Java mailing list

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