Re: Is it possible to extend a parameterized type using gen-class?

2012-03-04 Thread sim
Hi Daniel, Thanks for that but what if the type your extending is parameterised? For example using your example: (ns ExampleCollection (:gen-class :extends java.util.AbstractCollection)) How do I do the bit? Forgive me if this is obvious my java foo is weak :) -- sim On Saturday, 3

Is it possible to extend a parameterized type using gen-class?

2012-03-01 Thread sim
i/bin/view/Main/ExtendingMacro Any help/pointers would be greatly appreciated. -- sim -- 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 modera

Re: http-agent usage in subsequent agent action question

2010-02-22 Thread sim
Hi Tim, On Feb 19, 3:17 pm, Timothy Pratley wrote: > (defn some-action [x] (println "FOO:" (:clojure.contrib.http.agent/result x))) Thanks for the tip, when I looked at the http-agent code and I saw the ::result keyword I thought that meant it was private to the namespace which meant I couldn't

Re: http-agent usage in subsequent agent action question

2010-02-18 Thread sim
case it is important to the code in some-action that http-agent has finished as not all of the http-agent accessors return results when the :handler is called, eg status returns NIL during the :handler. I guess the real question is this, is this a bug in http-agent or an http-agent usage error on my par

http-agent usage in subsequent agent action question

2010-02-18 Thread sim
m free to call result in a later action. Finally my question, is my usage of actions idiomatic and I have just stumbled onto an unusual usage pattern for http-agent or is there some reason that await is always called in string and result that I am unaware of? -- sim -- You received this messa