This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: bug: let-values not immediately available
- From: Per Bothner <per at bothner dot com>
- To: "Hoehle, Joerg-Cyril" <Joerg-Cyril dot Hoehle at t-systems dot com>
- Cc: kawa at sources dot redhat dot com
- Date: Fri, 17 May 2002 16:54:37 -0700
- Subject: Re: bug: let-values not immediately available
- References: <DFD875E85664D3118FA6080006277DE705823323@U8PN2.blf01.telekom.de>
Hoehle, Joerg-Cyril wrote:
> #|kawa:1|# (let-values ((x (values 1 2))) x)
> gnu.mapping.UnboundSymbol: Unbound symbol let-values - no field let-values in ka
> wa.lib.syntax
> at gnu.kawa.reflect.ClassMemberConstraint.setup(ClassMemberConstraint.ja
This was due to inconsistent name-mangling.
I've attached a patch.
> BTW, would "apropos" or something like Python's dir() or vars() be doable
> in the REPL? Using reflection?
Probably.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/
Index: Declaration.java
===================================================================
RCS file: /cvs/kawa/kawa/gnu/expr/Declaration.java,v
retrieving revision 1.36
diff -u -r1.36 Declaration.java
--- Declaration.java 8 Mar 2002 03:54:04 -0000 1.36
+++ Declaration.java 17 May 2002 21:25:29 -0000
@@ -486,9 +486,9 @@
{
setSimple(false);
String fname = getName();
+ fname = Compilation.mangleName(fname);
if (getFlag(IS_UNKNOWN))
fname = "id$" + fname;
- fname = Compilation.mangleNameIfNeeded(fname);
int fflags = 0;
boolean isConstant = getFlag(IS_CONSTANT);
boolean typeSpecified = getFlag(TYPE_SPECIFIED);