Ah. So class returns the class of the instance, and does not find the class with the name given. So , if I wanted to get the class of a ExecutionEvent, I would
Have to go (Class/forName "org.eclipse.core.commands.ExecutionEvent")? Preferrably, I would like to simply go (Class/forName "ExecutionEvent") since I have already done: (import (java.lang.reflect Modifier Method) (org.eclipse.core.commands ExecutionEvent)) Is there a way? From: clojure@googlegroups.com [mailto:cloj...@googlegroups.com] On Behalf Of Laurent PETIT Sent: Thursday, September 10, 2009 10:06 AM To: clojure@googlegroups.com Subject: Re: Class function alwayrs returns java.lang.class?? Yes. (class "an instance of Stirng") will return java.lang.String Now the clojure symbol String is bound to a java.lang.Class instance giving information on the java.lang.String class (as if you had issued "kljlkjk".getClass()). 2009/9/10 Gorsal <s...@tewebs.com> Hello. I'm trying to use (class String) to get the class object for the String class. However, nomatter what class typ ei pass, i always get java.lang.Class back. Is this the way its supposed to work? Thx! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---