I think the root cause is that you need to follow the directory name and
filename conventions. For example clojure.java.jdbc is in a
clojure/java/jdbc.clj file
https://github.com/clojure/java.jdbc/blob/master/src/main/clojure/clojure/java/jdbc.clj
--
You received this message because you
I want to do something like when you import a file from a clojure package,
for example the case of jdbc, you wrote* (:require [clojure.java.jdbc :as
sql])* than you call functions from clojure jdbc with statement
(sql/fc-name..)
but seams that this not working in case you have two .clj files
And alternatively you could declare the first namespace as being a.b.c.fileB
--
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 patie
Normally, the initial elements of the namespace are used to create directories
and the last element matches the filename. So, for your first example, there
would be an a/b/c.clj file.
Perhaps this is at the root of the issue.
--
You received this message because you are subscribed to the Googl
Hi all,
I have file fileB.clj
(ns a.b.c)
(defn inc-sample [no] (+ no 1))
and file fileA.clj
(ns a.b.c.d
(:require [a.b.c.fileB :as fB]))
(defn method-a []
(println "number incremented" (fB/inc-sample 2))
)
in fileA.clj I'm not able to see the functions from fileB.clj even