On Mar 24, 2009, at 1:01 PM, Tom Emerson wrote:
Hi all, I'm getting an error I don't quite understand. Starting Clojure (r1329) and entering user> (ns foo (:use [clojure.contrib.zip-filter :as zf]))
Because you've used ":use", you are referring all of clojure.contrib.zip-filter into foo. ns has already referred all of clojure.core into foo. They both define ancestors and descendants so you get an exception.
Since you're providing an alias via :as, you have a few options:- change :use to :require and always prefix your zip-filter calls with zf/
- add ":exclude (descendants ancestors)" to your :use clause. Most of zip-filter will be available without qualification. For ancestors and descendants you'll need to use the zf/ prefix.
- add an ":only ()" clause to your :use clause, effectively changing it from a :use to a :require
--Steve
smime.p7s
Description: S/MIME cryptographic signature
