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]

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")
+


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