Re: how to launch repl and switch to specific namespace programmatically

2012-12-13 Thread Stone
cool. it works great. Thanks! On Fri, Dec 14, 2012 at 2:19 AM, juan.facorro wrote: > I forgot to add the modified command line for this to work as described: > > $ java -Xmx1G -cp $CLASSPATH clojure.main src/my-repl/repl.clj > > Juan > > > On Thursday, December 13, 2012 3:15:36 PM UTC-3, juan.fa

Re: how to launch repl and switch to specific namespace programmatically

2012-12-13 Thread juan.facorro
I forgot to add the modified command line for this to work as described: $ java -Xmx1G -cp $CLASSPATH clojure.main src/my-repl/repl.clj Juan On Thursday, December 13, 2012 3:15:36 PM UTC-3, juan.facorro wrote: > > The following code will start a repl in the my-repl.repl namespace: > > (ns my-rep

Re: how to launch repl and switch to specific namespace programmatically

2012-12-13 Thread juan.facorro
The following code will start a repl in the my-repl.repl namespace: (ns my-repl.repl (:require [clojure.main])) (def my-var "hi") (clojure.main/repl) So you'll be able to acces the vars defined in it. my-repl.repl=> my-var "hi" Cheers, Juan On Thursday, December 13, 2012 2:25:44 PM UTC-3, s

Re: how to launch repl and switch to specific namespace programmatically

2012-12-13 Thread stone
seems that the repl start up namespace is hard coded in RT: https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/RT.java#L437 static void doInit() throws ClassNotFoundException, IOException{ load("clojure/core"); Var.pushThreadBindings( RT