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


On Fri, Nov 29, 2002 at 10:29:28PM -0800, Per Bothner wrote:
> 
> 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.)

OK, just the example from 

   http://www.gnu.org/software/kawa/Defining-new-classes.html


After I cut-n-paste the <2d-vector> on the repl prompt, I type

#|kawa:13|# (define v <2d-vector>)
gnu.mapping.UnboundSymbol: Unbound symbol <2d-vector>
        at gnu.mapping.NameMap.getChecked(NameMap.java:16)
        at gnu.expr.ReferenceExp.eval(ReferenceExp.java:108)
        at gnu.expr.SetExp.eval(SetExp.java:94)
        at gnu.expr.Expression.eval(Expression.java:21)
        at gnu.expr.ModuleExp.evalModule(ModuleExp.java:160)
        at kawa.Shell.run(Shell.java:232)
        at kawa.Shell.run(Shell.java:180)
        at kawa.Shell.run(Shell.java:167)
        at kawa.Shell.run(Shell.java:154)
        at kawa.repl.main(repl.java:610)
#|kawa:14|# 


The same thing used to work.



Wen-Chun



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