Re: Adding user-defined state to classes created with (proxy ...)

2009-01-07 Thread Greg Harman
> You're calling my bluff, eh?  Well, no I don't yet. Although I have been known to do some bluff-calling, in this case I was actually hoping you had done it because I need this for a project I'm working on. :-) > I think the problem with your example is trying to work with classes > or namespac

Re: Adding user-defined state to classes created with (proxy ...)

2009-01-07 Thread Chouser
On Wed, Jan 7, 2009 at 3:18 PM, Greg Harman wrote: > > Do you have an example of gen-interface + proxy working together? You're calling my bluff, eh? Well, no I don't yet. I'm doing ugly hacky things instead, to avoid the compile step. But since you've thrown down the gauntlet, to mix some me

Re: Adding user-defined state to classes created with (proxy ...)

2009-01-07 Thread Greg Harman
Chouser, Do you have an example of gen-interface + proxy working together? Take a look at the following. Proxy works fine for a Java-provided interface, but not for the generated one (ICompileTest.class is being generated and is in the filesystem/classpath where expected.) (ns compiletest) (gen-

Re: Adding user-defined state to classes created with (proxy ...)

2009-01-04 Thread Chouser
On Sun, Jan 4, 2009 at 1:28 AM, Tom Faulhaber wrote: > > 1) This use case may be obscure enough that I should just buckle down > and give (ns (:gen-class ...)) some love. It may be, but let me again mention the option of gen-interface plus proxy. Sometimes you need to produce a physical .class

Re: Adding user-defined state to classes created with (proxy ...)

2009-01-03 Thread Tom Faulhaber
Chris. Yes, my current implementation is as we discussed (I use a vector instead of a map, but that's a nit) and it works great as long as I control the object and can pull out their component parts when I need to. However, when I pass it other places that may not understand what I have, it gets

Re: Adding user-defined state to classes created with (proxy ...)

2009-01-03 Thread Chouser
On Fri, Jan 2, 2009 at 1:30 AM, Tom Faulhaber wrote: > > (This is sort of a follow-up to this thread from last July: > http://groups.google.com/group/clojure/browse_thread/thread/7f5cf3e78954b81d/aae7f082c51337c9?lnk=gst&q=proxy#aae7f082c51337c9.) > > Recently, I've been building a version of jav

Re: Adding user-defined state to classes created with (proxy ...)

2009-01-01 Thread Tom Faulhaber
Oops, sorry about the wrapping! --~--~-~--~~~---~--~~ 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 clojure+uns