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]

bug when compiling macro


Hi,

if I compile the following file (let's say bla.scm):

(module-name "bla")
(module-static #t)

(define-syntax jhash-get
  (syntax-rules ()
    ((jhash-get hash key)
     (let ((val (invoke (as <java.util.Hashtable> hash) 'get key)))
       (if (eq? val #!null)
           #f
           val)))))

by 'kawa -d . -C bla.scm
I get a <unknown>:0: Literals: Internal
error:java.lang.NullPointerException.

Any ideas about that?

BTW, can I export syntax-definitions, or is this not necessary?

Cheers,

Martin Atzmueller

-- 
Homepage: http://jove.prohosting.com/~ygrats/
Mail: ygrats@gmx.net

Sent through GMX FreeMail - http://www.gmx.net


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