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/