This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
define-syntax UnboundSymbol bug?
- From: Khairul Azhar <kazar1my at yahoo dot co dot uk>
- To: kawa at sources dot redhat dot com
- Date: Thu, 3 Oct 2002 02:28:00 +0100 (BST)
- Subject: define-syntax UnboundSymbol bug?
I have two files:
deldup.scm
----------
(require 'list-lib)
(define-syntax deldup
(syntax-rules ()
((deldup list)
(delete-duplicates list))))
deldup-test.scm
---------------
(require <deldup>)
(require 'list-lib)
(display (delete-duplicates '(1 1 2 3 4 4)))
(display (deldup '(5 5 6 7 8 8)))
---end---
I compile deldup.scm using the following: -
kawa.bat --module-static -C deldup.scm
while deldup-test.scm uses the following: -
kawa.bat --module-static --main -f deldup.class -T deldup_test
-C deldup-test.scm
When I run deldup_test (java deldup_test), I get the following error: -
Exception in thread "main" java.lang.ExceptionInInitializerError:
gnu.mapping.UnboundSymbol: Unbound symbol delete-duplicates
at gnu.mapping.Constraint.get(Constraint.java:15)
at gnu.mapping.Constraint.getProcedure(Constraint.java:36)
at gnu.mapping.Binding.getProcedure(Binding.java:37)
at deldup_test.<clinit>(deldup-test.scm:6)
(1 2 3 4)
As the output shows, delete-duplicates is bound but the deldup macro isn't
picking it up.
Any ideas for a workaround? Or whether I'm doing anything wrong?
=====
Khairul Azhar
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com