Re: load-file & namespace

2013-10-20 Thread Ramesh
Thanks, Juan. I saw that it was a compile time error after I sent out the email, so I tried to run it through "eval", and even this works. But, "resolve" looks more idiomatic. Also, I'll have to figure out how to get the namespace of the loaded file next. (eval (read-string (str "(do (load-file \"

Re: load-file & namespace

2013-10-20 Thread juan.facorro
Hi Ramesh, Based on the stack-trace, the error is thrown during compile-time. This means the compiler is having a hard time compiling test1/core.clj because it doesn't know of any hello namespace. This makes sense since no hello namespace has been referred to in the test1.core namespace (i.e.

load-file & namespace

2013-10-19 Thread Ramesh
Hi All, I'm calling load-file to load a user-specified file inside -main. And, the loaded file has its own namespace, and I'm able to see that using (ns-publics) as well. However, when I try to call a function inside the loaded file, from -main, I'm getting a "no such namespace" exception. ;; Lei