Hi there,

The docstring for one of the Overtone ugens fns isn't printing correctly - it's 
returning an empty docstring. I discovered that that particular ugen has the 
same name as one of the namespaces that is visible at that scope. The fn is 
called osc and the namespace for sending and receiving Open Sound Control 
messages is similarly called osc.

It turns out that the doc macro favours namespaces over functions:

user> (macroexpand '(doc osc))
(clojure.core/print-namespace-doc #<Namespace osc>)

I'm wondering if it's considered bad practice to have functions and namespaces 
with the same name. Everything appears to function perfectly well - except for 
the doc macro.

I'm also assuming my only solutions are to rename the fn or the namespace of 
the osc library?

Sam

---
http://sam.aaron.name

-- 
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

Reply via email to