This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Class name mangling


Wen-Chun Ni wrote:
Hi Per,

It seems the class name "de-mangling" produced by define-simple-class no longer works. Things like <2d-vector> (which is mangled to $N2d$Mnvector)
in the manual used to work under 1.6.68 but our most current CVS version can't find it.
You need to be a little more specific about who can't find what.

Note there are actually two (or perhaps three) manglings:

(1) a non-reversible "Java-like" where "foo-bar" is mangled to "fooBar".
(2) a reversible mangling where "foo-bar" is mangled to "foo$Mnbar".
(3) in most cases the source Scheme name is used as it is,if it is a
valid Java name, and otherwise the reversible mangling is used.

Which of these should be used when may possibly be inconsistent or
or otherwise not the best choice, however, so that is certainly open
to discussion!  (It has changed a bit over time.)
--
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]