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: Using Kawa extensions in R7RS libraries


The patch works correctly but raises another issue: (future ...) and
(runnable ...) are not included in (kawa base). I don't know if they
should be included, but if I require kawa/lib/thread.scm with (import
thread), any attempt to call (future ...) will show the following
message:

warning - no declaration seen for lambda

And fail. I fixed it by adding (import (scheme base)) at the top of
kawa/lib/thread.scm but I'm not sure if that's the best way to do it.

> The object macro is implemented by the Java code kawa/standard/object.java.
> (You can see this by searching for "object" in kawa/standard/Scheme.java.)

Thanks, I appreciate the directions. I've tried to read kawa's source
code before, but didn't know where to begin. kawa/standard/Scheme.java
looks like a good starting point :)

2015-07-05 18:17 GMT+02:00 Per Bothner <per@bothner.com>:
>
>
> On 07/05/2015 12:31 AM, ElÃas Alonso G.-Cornejo wrote:
>>
>> I've been having some trouble using
>>
>> (object ...)
>>
>> to create anonymous classes inside
>>
>> (define-library ...)
>>
>> declarations. I've added (import (kawa base)), but Kawa tries to
>> instantiate java.lang.Object instead of creating the anonymous class.
>> Where is the (object ...) macro defined? I've looking in lib/kawa,
>> but can't find it.
>
>
> The object macro is implemented by the Java code kawa/standard/object.java.
> (You can see this by searching for "object" in kawa/standard/Scheme.java.)
>
> It looks like 'object' is missing in (kawa base).  Please try the
> attached patch and let me know if that fixes the issue.
>
> We need to systematically go through the kawa extensions and add
> them to (kawa base).  (We should also re-do the bindings in Scheme.java
> to use (kawa base) rather than duplicate it.)
>
> --
>         --Per Bothner
> per@bothner.com   http://per.bothner.com/


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