pmf a écrit :
> 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)
>   

Or you can simply yell at the var until it yields its value: 
@#'clojure.core/generate-class

It has the value that line noise makes easy to spot places where you 
depend on a var that is not part of the public interface.

Christophe

-- 
Professional: http://cgrand.net/ (fr)
On Clojure: http://clj-me.blogspot.com/ (en)



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

Reply via email to