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: bug: let-values not immediately available


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);

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