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

Bryce McKinlay bryce@waitaki.otago.ac.nz
Thu Mar 22 20:11:00 GMT 2001


Jason Merrill wrote:
> >>>>> "Bryce" == Bryce McKinlay <bryce@albatross.co.nz> writes:
>> > Cool, thanks for doing that. Will this be going into the branch as
> > well? Currently it is impossible to pass a Java inner class to a
> > native c++ function due to differences in how the name manglers handle
> > '$', but getting rid of NO_DOLLAR_IN_LABEL ought to fix that.
>> 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. I imagine that doing this differently for native compiled Java would
be a PITA for various reasons.
The problem as I see it is that Java does honor the NO_DOLLAR_IN_LABEL and
mangles the '$' into something else, but C++ does not.
regards
 [ bryce ]


More information about the Java mailing list

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