On Saturday 06 December 2008 12:27, Chouser wrote:
> On Sat, Dec 6, 2008 at 12:52 PM, Randall R Schulz wrote:
> > - Renamed the conflicting (defn replace ...) and (defn remove ...)
>
> But 'remove' is also defined by clojure.core

That's the point. I changed the names in (my modified copy of) zip.clj 
to replace-node and remove-node.


> > user=> (load-file "/dar/clojure/zipper-test.clj")
> > java.lang.ClassCastException: clojure.lang.LazyCons cannot be cast
> > to clojure.lang.IFn (zipper-test.clj:35)
> >
> >
> > What  might explain this?
>
> Hard to guess with just a single line from a stack trace on an
> unknown .clj file, but I wouldn't be shocked if it was related to the
> 'remove' name confusion.

I fixed all the name conflicts. They're gone.

But the real question is why would simply typing a form work while 
reading the same form via (load-file) fail?


> --Chouser


Randall Schulz

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to