This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Extraneous define-namespace warning
- From: Chris Dean <Chris dot Dean at sokitomi dot com>
- To: Kawa List <kawa at sources dot redhat dot com>
- Date: Fri, 11 Jul 2003 00:50:28 -0700
- Subject: Extraneous define-namespace warning
Say I have two files A.scm and B.scm both of which use define-namespace
to create a namespace alias with the same name. Now if B requires A
then I get this message when compiling:
UsesNamespace.scm:6:2: warning - duplicate definition for '$Namespace$date'
Since namespaces are not imported with require, this warning is not
valid.
To demonstrate, create the two files in the attached patch and compile
them both.
Thanks again. (busy day!)
Regards,
Chris Dean
--- /dev/null Tue Dec 10 02:57:38 2002
+++ DefinesNamespace.scm Fri Jul 11 00:42:48 2003
@@ -0,0 +1,5 @@
+(module-static #t)
+(module-name <DefinesNamespace>)
+
+(define-namespace date "class:java.util.Date")
+
--- /dev/null Tue Dec 10 02:57:38 2002
+++ UsesNamespace.scm Fri Jul 11 00:42:59 2003
@@ -0,0 +1,7 @@
+(module-static #t)
+(module-name <UsesNamespace>)
+
+(require <DefinesNamespace>)
+
+(define-namespace date "class:java.util.Date")
+