On Oct 26, 11:16 am, James Reeves [EMAIL PROTECTED] wrote:
When you build Clojure from SVN using the ant file, it defaults to
compiling the class files for the highest version of Java available on
your system. So if you have Java 1.6, the clojure.jar file you make
will be inaccessible to
Hi Rich,
Thanks for the quick reply! I'm probably just being slow here, for which
I apologise, but some questions remain:
Rich Hickey wrote:
On Oct 26, 3:49 pm, Phil Jordan [EMAIL PROTECTED] wrote:
First of all, is the breakage intentional?
Yes. You can no longer embed unreadable objects
notallama wrote:
this may be more of a java question than a clojure question. i dunno.
how do i use a java class from clojure?
it's easy enough if it's one of the default java libraries, but so far
all i have managed with classes i wrote is unable to resolve to
classname
i tried
Hi Chouser
On Mon, Oct 27, 2008 at 8:46 AM, Chouser [EMAIL PROTECTED] wrote:
I think it's generally better to use = instead of .equals for
equality, unless you have a specific reason to not use = (which I
don't think is the case here).
Only that it allowed me to talk about Java interop in
Chouser,
I think I am missing something here, can you elaborate?
By the way, difference is eager, so I'm not sure there's much point in
using lazy-cat. :-)
I am using lazy-cat *because* difference is eager. Is that mistaken?
For example, the first expression below returns immediately, and
On Mon, Oct 27, 2008 at 12:25 PM, Stuart Halloway
[EMAIL PROTECTED] wrote:
I think I am missing something here, can you elaborate?
By the way, difference is eager, so I'm not sure there's much point in
using lazy-cat. :-)
I am using lazy-cat *because* difference is eager. Is that mistaken?
On Mon, Oct 27, 2008 at 07:58:09AM -0700, Tayssir John Gabbour wrote:
Pretty cool; this means that special operators just shadow my attempts
to redefine them. For example:
user (defn quote [a b]
(+ a b))
#'user/quote
user (quote 1 2) ;; Quote ignores args after the first...
1
I am trying to write a macro to rewrite something like this:
(set-props my-jframe :title blah :visible true)
Into calls to the setter methods. I finally settled on this:
(defmacro set-props [obj props]
(let [prop-map (apply hash-map props)]
`(do
~(for [[key val]
I'd like to suggest that clojure no longer look for a user.clj in the
default package (/user.clj). The user.clj file is a handy hook for
init-time code, but it's position causes the NetBeans application
framework (by default) to not load it at all, and to emit a pretty
ugly stack trace (which
On Oct 25, 10:27 am, V.Quixote [EMAIL PROTECTED] wrote:
I'd like some version of doto that works on bare Classes
(defmacro sdoto
Version of doto for use with static methods
[x methods]
`(do
~@(map (fn [m] (list '. x m))
methods)
~x))
Here you go. sdoto for static
On Oct 27, 12:04 pm, Bill Clementson [EMAIL PROTECTED] wrote:
Hi Chouser
On Mon, Oct 27, 2008 at 8:46 AM, Chouser [EMAIL PROTECTED] wrote:
I think it's generally better to use = instead of .equals for
equality, unless you have a specific reason to not use = (which I
don't think is the
On Oct 27, 3:15 pm, Bill Clementson [EMAIL PROTECTED] wrote:
On Mon, Oct 27, 2008 at 11:31 AM, Rich Hickey [EMAIL PROTECTED] wrote:
On Oct 27, 12:04 pm, Bill Clementson [EMAIL PROTECTED] wrote:
Hi Chouser
On Mon, Oct 27, 2008 at 8:46 AM, Chouser [EMAIL PROTECTED] wrote:
I think
On Mon, Oct 27, 2008 at 4:06 PM, Rich Hickey [EMAIL PROTECTED] wrote:
On Oct 27, 3:15 pm, Bill Clementson [EMAIL PROTECTED] wrote:
On Mon, Oct 27, 2008 at 11:31 AM, Rich Hickey [EMAIL PROTECTED] wrote:
On Oct 27, 12:04 pm, Bill Clementson [EMAIL PROTECTED] wrote:
Hi Chouser
On Mon,
On Mon, Oct 27, 2008 at 10:06 PM, Stuart Halloway
[EMAIL PROTECTED] wrote:
The code below implements a Monte Carlo simulation to estimate the
value of pi. It works, and it was easy to reuse the original single-
threaded approach across multiple agents.
How idiomatic is this use of agents?
14 matches
Mail list logo