Hello,
I have two newbie questions:
First
-----
(ns test (:import (java.io File)))
I can use File like this
(let [file (File. filename)])))
When using this import
(ns test (:import (java.io.File)))
I get an "Unable to resolve classname: File" which I don't understand.
Second
------
With this small piece of code
(ns test
(:import (java.io File)))
(set! *warn-on-reflection* true)
(if (nil? *command-line-args*)
(println "No command line arguments given.")
(let [filename (first *command-line-args*)]
(println filename)
(let [file (File. filename)])))
I get an
"Reflection warning, X:\workspace\ClojureTest\bin\test.clj:9 - call to
java.io.File ctor can't be resolved."
which I also don't understand.
Thanks in advance,
Marcel
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en