This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
"no declaration seen" warning
- From: Dean Ferreyra <dean at octw dot com>
- To: kawa at sources dot redhat dot com
- Date: Tue, 12 Apr 2005 01:42:32 -0700
- Subject: "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)))))