Hi Alex, This works for me:
(import '(javax.imageio ImageIO) '(java.io File)) (defn load-image [name] (.read ImageIO (new File name))) (load-image "tim/disaster2007_Genoa19.gif") I'd suggest not worrying about type tips until after you get your code doing what you want it to do. Type tips are just a way to speed up your program, by removing reflection. You can enable a warning mode *warn-on-reflection* later which will show all the possible improvements that could be obtained by providing a type tip. Sounds like the perfect job for a tool to do it for you. Regards, Tim. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
