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]

string=? redefinition compilation failed


Hi,

kawa crashes while trying to redefine procedure.

bash-2.05a$ cat bug.scm

(define-syntax string=?
 (syntax-rules ()
   ((string=? a b)
    (invoke (as <String> a) 'equals b))))

bash-2.05a$ kawa bug.scm

java.lang.NullPointerException
   at gnu.mapping.Symbol.defineValue(Symbol.java:83)
   at gnu.expr.SetExp.eval(SetExp.java:105)
   at gnu.expr.Expression.eval(Expression.java:21)
   at gnu.expr.ModuleExp.evalModule(ModuleExp.java:160)
   at kawa.Shell.run(Shell.java:232)
   at kawa.standard.load.loadSource(load.java:160)
   at kawa.standard.load.loadSource(load.java:129)
   at kawa.standard.load.apply(load.java:231)
   at kawa.Shell.runFile(Shell.java:295)
   at kawa.repl.main(repl.java:603)

Regards,
Vladimir



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