This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Name mangling
- From: Per Bothner <per at bothner dot com>
- To: kawa at sourceware dot org
- Date: Thu, 27 Jan 2011 07:12:12 -0800
- Subject: Re: Name mangling
- References: <m2r5byh3db.fsf@gmail.com>
On 01/27/2011 05:40 AM, Helmut Eller wrote:
I think in newer version of the class file format '-' is allowed
in method names. Maybe Kawa should use that and stop mangling it?
That might be a good idea.
Note there are two manglings:
(1) Method names generated from function names. These map
from Scheme style to Java style:
char-ready? -> isCharReady
(2) Everything else uses a reversible mangling:
char-ready? -> char$Mnready$Qu
I think it might be reasonable to keep (1) as current,
but change (2) to:
char-ready? -> char-ready$Qu
Comments?
This would of course break binary compatible, but I'm
afraid I haven't made much attempt at maintaining
binary compatibility across releases.
--
--Per Bothner
per@bothner.com http://per.bothner.com/