I apologize if this has been brought up before... But, where does the
doc
string on the `my-test' defn below reside.

In case one evaluating (doc my-test returns the doc string.  In case
two (doc evaluates the string as nil).

Is this value interned with the symbol and if so where and how do I
access that value.

If not, should I be able to defn with the doc string out of place
without first passing a keyword?

;;; Doc String before param
(defn my-test
"appropriately placed documentation string for my-test"
 []
(= my-test my-test))

user> (doc my-test)
-------------------------
user/my-test
([])
  appropriately placed documentation string for my-test
nil

;;; Doc String after param
(defn my-test
 []
"misplaced documentation string for my-test"
(= my-test my-test))

;;;;
user> (doc my-test)
-------------------------
user/my-test
([])
  nil
nil

--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to