> >I think that's correct (with the exception you already mention yourself:
> >you can use a :state structure containing multiple values).
>
> OK.
If you care mostly about performance, maybe using an array as :state
> will do. That's always mutable and access is really fast.
>
Oh, nice id
Mars0i writes:
> Is the following correct?
>
> The only way to define *multiple* mutable instance variables/fields
> for a class visible in Java is by using deftype with :volatile-mutable
> or :unsynchronized-mutable. The only way to inherit from a concrete
> Java class is by using gen-class or
Thanks--you're right, of course, Marshall. (I almost added "without
writing it in Java" somewhere in the first part of the post. That doesn't
mean writing parts in Java isn't worth considering. I'm just trying to
figure out what will and won't work in Clojure itself.)
-Marshall
On Wednesday
Mars0i writes:
> I believe these statements are correct, but gen-class is complex and
> deftype use has some nuances, so I want to make sure I haven't missed
> something.
You have missed one possible approach – write a small integration class
in Java which delegates behavior to a parameterized s
Is the following correct?
The only way to define *multiple* mutable instance variables/fields for a
class visible in Java is by using deftype with :volatile-mutable or
:unsynchronized-mutable.
The only way to inherit from a concrete Java class is by using gen-class or
proxy. gen-class allows a