On Tuesday 09 December 2008 12:33, Mark Volkmann wrote: > On Tue, Dec 9, 2008 at 2:12 PM, Stuart Halloway > > <[EMAIL PROTECTED]> wrote: > > Why can't I call set! in user.clj? (And what is the idiomatic way > > to do what I want here?) > > > > (set! *print-length* 103) > > -> Exception in thread "main" java.lang.ExceptionInInitializerError > > at clojure.lang.Repl.<clinit>(Repl.java:23) > > Caused by: java.lang.RuntimeException: > > java.lang.IllegalStateException: Can't change/establish root > > binding of: *print-length* with set > > I do that in my user.clj and it works with the version of Clojure in > Subversion as of this morning. > > I run it with a script that does this. > > CP=$CLOJURE_JAR:$CONTRIB_JAR:$BOOK_DIR:. > ... > java -cp $CP clojure.main --init ~/user.clj --repl
So for me it turns out that if you put a directory holding user.clj on the class-path, you get the ExceptionInInitializerError, but if you use the --init .../user.clj option (and don't put the directory holding it in the class-path), it works. 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 -~----------~----~----~----~------~----~------~--~---