Re: Understanding how to use namespaces

2009-01-05 Thread mehrheit
On Tue, 30 Dec 2008 22:25:35 -0800 "Mark Engelberg" wrote: > >In Clojure Box, is there any way to make the REPL automatically "use" >whatever namespaces are in the files you are actively working on? > If you are working on a namespace, you shouldn't 'use' it, you should switch the REPL to that

Re: Understanding how to use namespaces

2008-12-30 Thread Brian Doyle
On Tue, Dec 30, 2008 at 11:25 PM, Mark Engelberg wrote: > > Thanks, that helps dramatically. It took me a while to figure out how > to edit the SLIME startup to include my clojure files directory in the > classpath, but I got it working. > > So it seems like you have to make sure the namespace al

Re: Understanding how to use namespaces

2008-12-30 Thread Mark Engelberg
Thanks, that helps dramatically. It took me a while to figure out how to edit the SLIME startup to include my clojure files directory in the classpath, but I got it working. So it seems like you have to make sure the namespace always matches the file. That means if you change the name of the fi

Re: Understanding how to use namespaces

2008-12-30 Thread Daniel Eklund
Hey Mark, In addition to Meikel's explanation above, have a look at this message http://groups.google.com/group/clojure/msg/17ada41fcb5ef667 from the overall thread http://groups.google.com/group/clojure/browse_frm/thread/ff80d120c996ba1a/9bfbfe1b08246035# This was the post that finally made

Re: Understanding how to use namespaces

2008-12-30 Thread Meikel Brandmeyer
Hi, using namespaces also requires to layout the files in a certain way. For the following consider the directory cp to be in the classpath. Create a file cp/permutations.clj with your functions: (ns permutations) (defn fun1 ...) (defn fun2 ...) Then create your second namespace in the corres