Re: How To Load Source File

2009-01-14 Thread Onorio Catenacci
On Jan 14, 10:50 am, Greg Harman wrote: > For more than just experimentation with one file, you might also want > to look into lib packaging so that you can 'require' or 'use' rather > than have to go down to the level of 'load' or 'load-file'. Quick > summary, if your file has namespace "foo.bar

Re: How To Load Source File

2009-01-14 Thread Tom Ayerst
Glad to help. If you haven't found it yet the wiki is very helpful, especialyy: http://en.wikibooks.org/wiki/Clojure_Programming/Getting_Started If you want to spend some money Stuart Halloway's book is excellent http://www.pragprog.com/titles/shcloj/programming-clojure Cheers Tom 2009/1/14 On

Re: How To Load Source File

2009-01-14 Thread Greg Harman
For more than just experimentation with one file, you might also want to look into lib packaging so that you can 'require' or 'use' rather than have to go down to the level of 'load' or 'load-file'. Quick summary, if your file has namespace "foo.bar" then package it in file / foo/bar.clj (relative

Re: How To Load Source File

2009-01-14 Thread Onorio Catenacci
On Jan 14, 9:56 am, "Tom Ayerst" wrote: > This works for me in every configuration I could think of (at worst I get > java.io.FileNotFoundException). >   Are you running a plain cmd prompt? (not MSys or cygwin) >   How did you launch clj? > Hi Tom, Thanks for the response. I'm running Repl fro

Re: How To Load Source File

2009-01-14 Thread Tom Ayerst
This works for me in every configuration I could think of (at worst I get java.io.FileNotFoundException). Are you running a plain cmd prompt? (not MSys or cygwin) How did you launch clj? Rgds. Tom 2009/1/14 Onorio Catenacci > > Hi all, > > I'm new to Clojure and new to Lisp but not new to

How To Load Source File

2009-01-14 Thread Onorio Catenacci
Hi all, I'm new to Clojure and new to Lisp but not new to software development. And I feel very dumb for having to ask what seems like a very noob question but I can't seem to figure this out. If I want to load a source file into REPL it seems that I should be able to do this: (load-file "file