__CD / __CT / __FL naming collision?

Per Bothner per@bothner.com
Fri Feb 1 09:39:00 GMT 2002


Adam Megacz wrote:
> Tom Tromey <tromey@redhat.com> writes:
>>>>>>>>"Adam" == Adam Megacz <gcj@lists.megacz.com> writes:
>>>>>>>>>Adam> class org.foo.bar_.baz => __CD_org_foo_bar__baz
>>Adam> class org.foo.bar._baz => __CD_org_foo_bar__baz
>>Adam> is this bad?
>>>>>I don't know enough about the overall mangling scheme to tell you a
>>guaranteed method to pick a safe name :-(
>>>> Are there any characters outside [0-9A-Z_$] which are legal in symbols
> on all platforms? Period ('.') certainly is not (mingw-gdb chokes on
> it). Pretty much any other character could be safely used as a
> replacement for '.'. I'll make the change if anybody knows of such a
> character.

We should use counts, like the ABI does elsewhere. For example:
__CD3org3foo4bar_3baz
-- 
	--Per Bothner
per@bothner.com http://www.bothner.com/per/


More information about the Java mailing list

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