On Mar 13, 1:19 pm, Eric Thorsen <ethor...@enclojure.org> wrote: > I come across some functions in clojure/core that are really useful in > tool building but often are private. > Is it possible to make these public?
I'm using the following hack to access private functions (for example generate-class is private): ;; define another var pointing to the function in question (def wrapper #'generate-class) ;; use the new var (wrapper whatever args it needs) I.e. simply assign the "private" function to another var; since it's the metadata that contains the "private"-modifier and the metadata does not get copied over to the wrapper-var, you can access the function by using the wrapper-var. --~--~---------~--~----~------------~-------~--~----~ 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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---