This is the mail archive of the
kawa@sourceware.cygnus.com
mailing list for the Kawa project.
Re: cannot 'require' in embedded code (AGAIN...)
- To: Marco Vezzoli <marco dot vezzoli at st dot com>
- Subject: Re: cannot 'require' in embedded code (AGAIN...)
- From: Per Bothner <per at bothner dot com>
- Date: 01 May 2000 23:47:10 -0700
- Cc: kawa at sourceware dot cygnus dot com
- References: <3906C21D.161F5EBA@flashnet.it> <390E6EC7.EE37E8AB@st.com>
Marco Vezzoli <marco.vezzoli@st.com> writes:
> It seems that evalunating a "require" statement is the correct way, but
> I get this exception.
>
> > Exception in thread "main" java.lang.Error: internal error - SetExp.eval
> > with lexical binding
> > at gnu.expr.SetExp.eval(SetExp.java, Compiled Code)
I've been looking at this. It is easy to fix the immediate problem;
just apply the fix below. But that there are more fundamental
problems that are harder to solve - though I guess it is possible
you won't run into them or can work around them.
Index: require.java
===================================================================
RCS file: /cvs/kawa/kawa/kawa/standard/require.java,v
retrieving revision 1.3
diff -u -r1.3 require.java
--- require.java 2000/03/18 18:50:00 1.3
@@ -178,6 +179,7 @@
}
else
forms.addElement(QuoteExp.voidExp);
+ tr.mustCompileHere();
return true;
}
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/