I have the same question as you. Did you ever find an answer, Ari?
-Kevin
Den fredagen den 1:e mars 2013 kl. 15:36:45 UTC+1 skrev Ari:
>
>
>
> On Tuesday, February 26, 2013 8:54:19 PM UTC-5, Ari wrote:
>>
>> On Tuesday, February 26, 2013 3:16:23 PM UTC-5, Chas Emerick wrote:
>>
>>
>>> What do yo
I was experimenting with dynamic binding of vars with Clojure 1.3, as
described on http://clojure.org/vars and got this error:
user=> (def x 1)
user=> (binding [x 2] x)
IllegalStateException Can't dynamically bind non-dynamic var:
clojure.core/x clojure.lang.Var.pushThreadBindings
I figured ou
Thanks. I will definitely be using this function... keep me up to
date on any changes.
Bill wrote:
> > It occurs to me that the "unbean" function could be very useful when
> > writing tests for code that calls Java objects.
>
> Yes, that is exactly the use I have in mind.
--~--~-~--~
It occurs to me that the "unbean" function could be very useful when
writing tests for code that calls Java objects. Anyone have thoughts
on its use in this way?
On Feb 24, 9:18 pm, ".Bill Smith" wrote:
> > I tend to associate "bean" with Java beans, so the naming seems to be
> > reversed IMHO:
application context pattern and I am
going to take a look at it for incorporation in my design.
Thanks,
Kevin Albrecht
On Feb 24, 6:04 am, Itay Maman wrote:
> I've been silently following Clojure (and this group) for several
> months now.Somewhere around December I started working o
I am also interested in the reasoning behind this. See my related
question here:
http://groups.google.com/group/clojure/browse_thread/thread/b04d49784c895030
--Kevin Albrecht
On Feb 21, 5:47 am, Mark Volkmann wrote:
> If I understand correctly, ending a function name with an exclamat
d application without
> > compiling it?
>
> > On Feb 19, 6:51 pm, Kevin Albrecht wrote:
> > > I can vouch for using SWT with Clojure. There is also no need to
> > > compile you application to distribute it. I posted a little example
> > > program on m
I can vouch for using SWT with Clojure. There is also no need to
compile you application to distribute it. I posted a little example
program on my blog here:
http://kevinoncode.blogspot.com/2009/01/creating-clojure-gui-application-with.html
--
Kevin Albrecht
http://www.kevinalbrecht.com
Ah, this was the problem, thanks.
Michael Wood wrote:
> java -server -cp "${CLASSPATH}" clojure.main "${script}" "$@"
>
> The quotes are necessary around the $@, otherwise you will get the
> symptoms you are seeing.
--~--~-~--~~~---~--~~
You received this message b
ot;
When they should be this:
"/Users/smith/src/no_spaces.txt"
"~/file with spaces.txt"
--Kevin Albrecht
P.S. Also, unrelated to this problem, the following line in the
example code in command_line.clj is missing the vector surrounding the
bindings of the doseq:
:else
If no one knows of any existing conventions, does anyone have ideas
for conventions?
--~--~-~--~~~---~--~~
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 un
transaction (and therefore has a side
effect):
(defn beta []
(dosync (ref-set foo 10)))
3. Function that needs to be in a transaction:
(defn gamma []
(ref-set bar 42))
--Kevin Albrecht
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Why is this happening?
(def cs (make-array Character/TYPE 1024))
(apply str cs)
-> ""
(String/valueOf cs)
-> "[...@42880d"
Shouldn't these return the same value?
--Kevin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
Using #^{:doc ...} documents the code, but are there any tools out
there for creating HTML API documentation from the documented code?
Stephen C. Gilardi wrote:
> (def
> #^{:doc "a nice description here"}
> myvar
> (hash-map :a 1 :b 3))
--~--~-~--~--
How are people generating HTML or text documentation from their
Clojure code?
--~--~-~--~~~---~--~~
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 unsubscri
Ah, exactly what I was looking for, thanks.
On Jan 23, 11:15 am, Kevin Downey wrote:
> prn
>
> On Fri, Jan 23, 2009 at 11:00 AM, Kevin Albrecht wrote:
>
> > Below are two operations that print (1 2 3 4). How can I do something
> > similar to print ("1 2 3"
Below are two operations that print (1 2 3 4). How can I do something
similar to print ("1 2 3" 4) to standard out?
(println '("1 2 3" 4))
-> (1 2 3 4)
(def x "1 2 3")
(println `(~x 4))
-> (1 2 3 4)
--Kevin Albrecht
--~--~-~--~~--
lojure.jar clojure.lang.Script foo/bar/
alpha.clj
I get this error:
Exception in thread "main" java.lang.Exception: Unable to resolve
symbol: get-stuff in this context (alpha.clj:4)
I am relatively new to the Java world, so I'm sure I'm missing
something regarding the classpath or the name
Hi,
I have been looking into Clojure and I am looking for active projects
using Clojure so that I can look at production code.
Thanks,
Kevin Albrecht
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure&q
19 matches
Mail list logo