What tools exist in Clojure for understanding whether a given variable is boxed or primitive?
To get a better handle on boxing, I started playing around with things like: (def x 1) (def ^int x 1) (def x (int 1)) I want to know how Clojure is storing that 1 in the various cases. The only tool I know of to investigate the type of an object is to call (type x), but type always reports things as boxed, so it is of no help whatsoever. How does one go about investigating this? To be clear, I care less about the actual (def x ...) examples above (although if you want to comment about that, that's certainly helpful). I'm mostly concerned with figuring out how I can explore these issues on my own. Thanks, Mark -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.