Many thanks Adrian!

(This is the OP, I sent an email from another account because I thought there 
were issues with this one).

On Jun 29, 2010, at 9:39 AM, Adrian Cuthbertson wrote:

> Sorry, you don't need the type hists just the "this" arg...
> 
> (seq (.list (java.io.File. ".") (reify java.io.FilenameFilter (accept
> [_ f s] (not (.startsWith s "."))))))
> 
> On Tue, Jun 29, 2010 at 3:35 PM, Adrian Cuthbertson
> <adrian.cuthbert...@gmail.com> wrote:
>> You need the "this" arg and I find you need to hint the exact types
>> when reifying java interfaces;
>> 
>> (seq (.list (java.io.File. ".") (reify java.io.FilenameFilter
>> (^boolean accept [_ ^java.io.File f ^String s] (not (.startsWith s
>> "."))))))
>> 
>> ... works for me.
>> 
>> - Rgds, Adrian
>> 
> 
> -- 
> 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

Reply via email to