I intended to use a namespace declaration like this: user> (ns three-tier (:use clojure.contrib.sql)) nil
but I mistakenly typed user> (ns three-tier (:use (clojure.contrib.sql))) nil The latter :use call accomplished nothing, but that bit of knowledge is hard to come by. The enclosed patch changes Clojure to check for such a malformed prefix list and throw an exception with a message that should help narrow down the problem: user=> (ns three-tier (:use (clojure.contrib.sql))) java.lang.Exception: found prefix clojure.contrib.sql, but no name(s) (NO_SOURCE_FILE:0) --Steve Index: src/clj/clojure/boot.clj =================================================================== --- src/clj/clojure/boot.clj (revision 1081) +++ src/clj/clojure/boot.clj (working copy) @@ -3202,6 +3202,7 @@ (apply load-lib nil (prependss arg opts)) (let [[prefix & args] arg] (throw-if (nil? prefix) "prefix cannot be nil") + (throw-if (nil? args) "found prefix %s, but no name(s)" prefix) (doseq arg args (apply load-lib prefix (prependss arg opts)))))))) --~--~---------~--~----~------------~-------~--~----~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---