On 19 September 2014 at 11:04:50, Hemant Gautam (gettingerr...@gmail.com) 
wrote:
> So, can you please tell me when I load b.clj in REPL then what happens  
> and What difference comes between these Require and Import.  

You do not import functions. That's what :refer, an option on require, is for.
Only Java classes are imported. If you do not need to instantiate or otherwise
use Java classes, don't use import.

When Clojure compiler compiles b.clj, it will notice that you require
com.gettingerror.a (in this example) and will compile that first,
then make it available in b as "com.gettingerror.a".

This is explained in more depth with examples in the guides I've linked to.
--  
@michaelklishin, github.com/michaelklishin

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to