I'm build a library which provides a DSL for building ontologies.
Underneath this backs onto a Java API. The library works by provide some
macros, which create Java objects then intern them into the local
namespace. 

Now, I would like to be to support documentation and source code lookup.
The ideal way to do this would be to use clojure.repl/doc and source
functionality; I *think* in most cases this would mean that the various
development environments would just work with my DSL. 

With the documentation, I can just add this to the metadata. But there
is a problem; I also need this in the underlying Java objects, so that
when the ontology is serialised, all the documentation goes with it. So
now I have the documentation in two places. 

So, I really would like to hook into the doc function so that I can
return a documentation string pulled directly from the underlying Java
object; I already have a function for doing this, but do not know how to
get the native Clojure facilities to call this, rather than just take
the documentation directly from the metadata. 

Any suggestions gratefully recieved!

Phil



-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
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
--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to