How about just "Integer"? :) Clojure> Integer java.lang.Integer Clojure> (class IntegĀer) java.lang.Class
Dave On Thu, Sep 15, 2011 at 1:31 PM, Andrew Xue <and...@lumoslabs.com> wrote: > Hi all -- > > Trying to basically do something like Integer.class -- but ... > > user=> (Integer/class) > user=> java.lang.NoSuchFieldException: class (NO_SOURCE_FILE:2) > > user=> (Integer/getClass) > java.lang.NoSuchFieldException: getClass (NO_SOURCE_FILE:4) > > > Some (not so pretty) workarounds are > > (.getClass (Integer. "0")) > (class 0) > > but there must be a better more idiomatic way to do this? Thanks > > -- > 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 > -- 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