On Sunday 28 December 2008 09:35, Mark Volkmann wrote:
> Can you explain what is happening in the collision? function?
> I don't think I've seen % used outside the context of an anonymous
> function.
To my eye, those uses of % _are_ within an anonymous function:
(defn collision? [{[b] :body} a]
Can you explain what is happening in the collision? function?
I don't think I've seen % used outside the context of an anonymous function.
On Wed, Dec 24, 2008 at 12:44 AM, Stephen C. Gilardi wrote:
> Based on Chouser's version, but using atoms, a splash of color, a little
> more destructuring a
Works for me from SLIME. Check your *inferior-lisp* buffer for exceptions.
On 12/27/08, MattyDub wrote:
>
> This might be off-topic, but when I launched "snake" from SLIME (via
> load-file and then "run-snake"), the app didn't receive any UI
> Events. I thought at first it might be because the
This might be off-topic, but when I launched "snake" from SLIME (via
load-file and then "run-snake"), the app didn't receive any UI
Events. I thought at first it might be because the snake Frame didn't
have focus, but even when I gave it focus, it still didn't receive any
Events. When I ran it f
On Fri, Dec 26, 2008 at 4:40 AM, Emeka wrote:
> Chooser,
"Chouser"
> Please send me yours then.
Already did:
http://groups.google.com/group/clojure/msg/4f00d2a3b5da8444
And Mr. Gilardi improved on it here:
http://groups.google.com/group/clojure/msg/90316675320091cf
--Chouser
--~--~-~
Chooser,
Please send me yours then.
Emeka
--~--~-~--~~~---~--~~
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
On Thu, Dec 25, 2008 at 5:52 PM, Emeka wrote:
> Exception in thread "AWT-EventQueue-0"
> java.lang.UnsupportedOperationException: keyReleased
It was to avoid this exception that my version included an empty
implementation of keyReleased.
--Chouser
--~--~-~--~~~---~-
Snake frame would appear with square ball that moves and another that does
not move.Below is what I got each time I try to play with arrow keys. I
count on you as always to come to my help.
user=> (require 'snake)
nil
user=> (snake/run-snake)nil
user=>
Exception in thread "AWT-EventQueue-0"
ja
On Dec 24, 2008, at 8:11 AM, Chouser wrote:
On Wed, Dec 24, 2008 at 1:44 AM, Stephen C. Gilardi
wrote:
Based on Chouser's version, but using atoms, a splash of color, a
little
more destructuring and more separation of model and view.
Would you be willing to explain why you think it's corr
On Wed, Dec 24, 2008 at 1:44 AM, Stephen C. Gilardi wrote:
> Based on Chouser's version, but using atoms, a splash of color, a little
> more destructuring and more separation of model and view.
Would you be willing to explain why you think it's correct to use
atoms here? I considered it, but wa
Based on Chouser's version, but using atoms, a splash of color, a
little more destructuring and more separation of model and view.
Very cool demo, Abhishek, thanks.
--Steve
(import '(java.awt Color) '(javax.swing JPanel JFrame Timer)
'(java.awt.event KeyEvent ActionListener KeyListene
Hi Steve,
It works now.
thanks
Sun
On Dec 23, 9:42 pm, "Stephen C. Gilardi" wrote:
> On Dec 23, 2008, at 9:28 PM, wubbie wrote:
>
> > Hi,
> > I ran it with the changes and got the message:
> > java.lang.IllegalArgumentException: Don't know how to create ISeq
> > from: Symbol (NO_SOURCE_FILE:2
still have error:
s...@wubbie:~/clj-ex$ java -cp clojure.jar clojure.lang.Repl snake.clj
java.lang.IllegalArgumentException: Don't know how to create ISeq
from: Symbol (snake.clj:26)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:4113)
at clojure.lang.Compiler.analyze(Compiler.
I've also updated the code for "modern" Clojure, including stylistic
changes, plus some other changes that turned out to be mostly
gratuitous. Anyway, here it is. To run:
java -cp clojure.jar clojure.lang.Repl snake.clj
--Chouser
--~--~-~--~~~---~--~~
You receiv
Hi,
That was written several months ago, against a very different version
of Clojure.
Below is a working port, against a current Clojure (rv 1185), on
OpenJDK (1.6.0_0-b11) on GNU/Linux. The original web page will also
be updated.
(ns snake (:import (java.awt.event KeyEvent ActionListener KeyL
On Dec 23, 2008, at 9:28 PM, wubbie wrote:
Hi,
I ran it with the changes and got the message:
java.lang.IllegalArgumentException: Don't know how to create ISeq
from: Symbol (NO_SOURCE_FILE:22)
What can be the problem?
I recommend you try this:
- copy and paste the code from the website int
Hi,
I ran it with the changes and got the message:
java.lang.IllegalArgumentException: Don't know how to create ISeq
from: Symbol (NO_SOURCE_FILE:22)
What can be the problem?
thanks
sun
On Dec 23, 6:08 pm, "Stephen C. Gilardi" wrote:
> On Dec 23, 2008, at 5:19 PM, MattyDub wrote:
>
> > On the
Ah, I didn't know about the doto change, thanks Stephen. It runs now,
although it doesn't seem to catch any of my key presses.
Thanks,
-Matt
On Dec 23, 3:08 pm, "Stephen C. Gilardi" wrote:
> On Dec 23, 2008, at 5:19 PM, MattyDub wrote:
>
> > On the Java Interop page (http://clojure.org/java_
On Dec 23, 2008, at 5:19 PM, MattyDub wrote:
On the Java Interop page (http://clojure.org/java_interop), the proxy
macro is described as creating "...a instance of a proxy class that
implements the named class/interface(s)...". Is this done using Java
Dynamic Proxy Classes (http://java.sun.com
On the Java Interop page (http://clojure.org/java_interop), the proxy
macro is described as creating "...a instance of a proxy class that
implements the named class/interface(s)...". Is this done using Java
Dynamic Proxy Classes (http://java.sun.com/j2se/1.5.0/docs/guide/
reflection/proxy.html)?
20 matches
Mail list logo