Meikel,

Thanks for the quick answer.

So I was only one step away from a solution !

I had :

user=> (let [arg (with-meta 's {:tag String}) arglist [arg] body (list
'.length arg)] (eval (list 'fn arglist body)))
Reflection warning, NO_SOURCE_PATH:52 - reference to field length
can't be resolved.
#<user$eval__210$fn__212 user$eval__210$fn__...@b957ea>
user=>

when I needed :

user=> (let [arg (with-meta 's {:tag "java.lang.String"}) arglist
[arg] body (list '.length arg)] (eval (list 'fn arglist body)))
#<user$eval__198$fn__200 user$eval__198$fn__...@7f58ef>
user=> (*1 "foo")
3

Thanks for your help - much appreciated :-)

Jules

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