This is the mail archive of the kawa@sourceware.org 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: Android REPL on Kawa - unable to create functions on the fly


* Per Bothner [2012-01-28 21:27] writes:

> On 01/26/2012 04:09 AM, Helmut Eller wrote:
>> Setting gnu.expr.ModuleExp:compilerAvailable makes it possible to
>> evaluate lambdas.
>
> What do you think of the attached  patch?
> I'm hoping you don't need to tweak alwaysCompiler or compilerAvalable
> any more.

Looks good and works for me.  I still needed to call
Scheme#registerEnvironment, tho.

> Does comparing System.getProperty("java.vm.name") against "Dalvik"
> seem like a reasonable and robust test?

Yes, I think so.  We could try to call ClassLoader#defineClass but
checking the property seems good enough to me.

Helmut


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