Thanks Meikel! That makes it clearer...
Regards, Apurva ----- Original Message ----- From: "Meikel Brandmeyer" <[EMAIL PROTECTED]> To: clojure@googlegroups.com Sent: Sunday, August 31, 2008 8:46:01 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi Subject: Re: with-meta usage Hello, > I was wondering why the first scenario didn't work but couldn't find > details on this. Can someone please explain? I also stumbled over this issue. Please read this sentence from the "Metadata" section on clojure.org (http://clojure.org/metadata) > "Symbols and collections support metadata" I also missed this. It's pretty subtle. Since 10 is neither a Symbol nor a Collection. You get the error. You can set the metadata of the Var: ---8<--- user=> (def #^{:Some :MetaData} v 10) #'user/v user=> (meta #'v) {:Some :MetaData, :file "NO_SOURCE_FILE", :name v, :ns #<Namespace: user>, :line 1} ---8<--- Hope this helps. Sincerely Meikel --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---