On Sat, Oct 3, 2009 at 7:23 AM, pmf <phil.fr...@gmx.de> wrote:
>
> And String is final, making deriving from it impossible.
>
> One way (most probably not the best way) would be to wrap it in a Var
> and attach the metadata to the Var, i.e.
>
>  (def #^{:blah :foo} my-string "some string")
>
> Note that to access the metadata of the Var later, you have to use var-
> quote:
>
>  ^#'my-string
>

Thanks for the suggestion. Looks like there is no elegant way to add
meta data to strings. I ended up changing my functions slightly so
that I don't need to embed the meta data in the string.

Thanks,
Jung

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to