Okay...eleven days later and I've finally got something that works!
You can find a fully working Clojure version of GraphEditor.java at
http://gist.github.com/398198
Clojure beginners, there is a lot you can learn from comparing the
Java and Clojure versions of this program (though Clojure progra
> simple, you'd be embarrassed to admit that you didn't see WHAT WAS
> STARING YOU IN THE FACE all along?
Don't be too hard on yourself - it takes a while for the clojure
patterns to sink in so you easily spot the simple errors. Best to
throw it out there so someone else can help.
Gen-class is a
Hi,
On 30 Apr., 08:16, Gregg Williams wrote:
> And what's with the slashes in "[java/lang/Object]"--I've never seen
> that before.
Alex wrote you before: :extends does not take a vector.
Ad your constructor question: see :post-init.
Sincerely
Meikel
--
You received this message because you
On 30/04/2010, at 3:46 PM, Gregg Williams wrote:
> Have you ever wanted to abandon a simple program with a bug that has
> been DRIVING YOU CRAZY because it's just got to be something SO
> simple, you'd be embarrassed to admit that you didn't see WHAT WAS
> STARING YOU IN THE FACE all along? Well,
Have you ever wanted to abandon a simple program with a bug that has
been DRIVING YOU CRAZY because it's just got to be something SO
simple, you'd be embarrassed to admit that you didn't see WHAT WAS
STARING YOU IN THE FACE all along? Well, this is mine:
(ns org.InfoML.genclassObject
(:gen-class
Hi,
On Thu, Apr 29, 2010 at 12:09:06PM -0700, Gregg Williams wrote:
> Re: subclassing: Unless I'm missing something, I still want to
> subclass PCanvas because the class adds another method, updateEdge,
> which gets called within the drag event handler.
Maybe you can make it a normal clojure fun
Alex, thanks for your two posts and for taking the time to look at the
original source code. Some comments:
Re: Integer being final. Actually, I remembered that...and then
forgot. Tired? Clueless? You decide.
I'm going to fold your observations into a new test program to see
what happens; thanks.
Gregg Williams writes:
> Now I'm working on
> the "Graph Editor" program described at
> http://www.piccolo2d.org/learn/grapheditor.html
> .
>
> In this sample program (which you don't really need to look at) I need
> to subclass a Piccolo2D class to create a class named GraphEditor ,
> but unlik
Hi Gregg,
Gregg Williams writes:
> (ns genclassInteger
> (:gen-class
>:extends [java.lang.Integer])
> ;(:import (java.lang Integer)) ; < unnecessary, right?
> )
> -
>
> This returns the error:
>
> Exception in thread "main" java.lang.ClassNotFoundException:
> [java/lang/
Hi--another example, another failed attempt to do something that looks
quite basic (grumble, grumble) ...
I'm continuing on my path to learning how to use Clojure with the
graphics library Piccolo2D (http://www.piccolo2d.org) by re-
implementing some of Piccolo2D's sample programs. Now I'm working
10 matches
Mail list logo