Hi Patrick, I needed this too in order to make LWJGL's GL classes a little less cumbersome to use so I ended up writing my own function based on import-static. It's not done yet or polished as much as I'd like but it lets you write something like (use-statics fully-qualified- classnames+). You can also specify methods/fields to specifically include or exclude via :only and :exclude, like the standard namespace functions do. I wasn't planning on releasing it as I didn't think it would be all that generally useful, but if you'd like I can email it to you and maybe polish it up enough to release, or submit to Stuart Sierra as a suggested contribution to his function in clojure-contrib.
- Matt On Jun 12, 1:22 pm, CuppoJava <patrickli_2...@hotmail.com> wrote: > Hi, > I'm just trying out import-static from contrib, and was wondering is > there any way of importing all static methods and fields into the > current namespace? It's a little unwieldy to specify hundreds of > functions to import one by one. > -Patrick --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---