This is the mail archive of the
kawa@sourceware.cygnus.com
mailing list for the Kawa project.
two bugs and a buggy patch
- To: kawa <kawa at sourceware dot cygnus dot com>
- Subject: two bugs and a buggy patch
- From: Marco Vezzoli <marco dot vezzoli at st dot com>
- Date: Mon, 10 Apr 2000 14:10:04 +0200
- Organization: sgs-thomson
Hi, this is a little problem i experienced
#|kawa:2|# (make-record-type 'lispy-name '(a b))
Exception in thread "main" java.lang.ClassFormatError: lispy-name
(Illegal Class name "lispy-name")
This patch fix only class creation... the idea is to mangle the names
when accessing instances too.
file Record.java
----------------
6a7
> import gnu.expr.Compilation;
148a150
> name=Compilation.mangleName(name);
169c171
< clas.addField(pair.car.toString(), Type.pointer_type,
Access.PUBLIC);
---
> clas.addField(Compilation.mangleName(pair.car.toString()), Type.pointer_type, Access.PUBLIC);
Another problem with quasiquoting.
#|kawa:1|# ,a
gnu.mapping.UnboundSymbol: Unbound symbol unquote
at gnu.mapping.Environment.getChecked(Compiled Code)
at kawa.standard.ScmEnv.getChecked(Compiled Code)
at gnu.expr.ReferenceExp.eval(Compiled Code)
at gnu.expr.ApplyExp.eval(Compiled Code)
at gnu.expr.ModuleExp.evalModule(Compiled Code)
at kawa.Shell.run(Compiled Code)
at kawa.Shell.run(Compiled Code)
at kawa.Shell.run(Compiled Code)
at kawa.repl.main(Compiled Code)
--
(--cafe babe--)
Marco Vezzoli marco.vezzoli@st.com
CR&D Intranet Developement STMicroelectronics
tel. +39 039 603 6852 fax. +39 039 603 5055