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]

"no declaration seen" warning


I'm getting a "no declaration seen" warning on a fluid-let variable in the catch part of a try-catch (see attached).

% make NEW=1 default
CLASSPATH=.:~/kawa/cvs/kawa-pure-build/kawa-1.7.91.jar java kawa.repl --warn-undefined-variable --module-static-run --main -C lambdas1.scm
(compiling lambdas1.scm)
lambdas1.scm:10:40: warning - no declaration seen for VALUE


I'll try and take a closer look at this tomorrow.

Dean
--- /dev/null	Tue Oct  7 04:48:06 2003
+++ lambdas1.scm	Tue Apr 12 01:26:57 2005
@@ -0,0 +1,10 @@
+(module-static #t)
+
+(define VALUE #!null)
+
+(define (fn)
+  (fluid-let ((VALUE (make <java.lang.String> "Hello, world!")))
+    (try-catch
+     #t
+     (t <java.lang.Throwable>
+        (invoke (as <java.lang.String> VALUE) 'length)))))

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