Hi,
I'm getting a cast exception on trying to create a simple structure
and wondered if there was something obvious that I'm not doing. The
transcript below shows my version of java. Running on Mac Book Pro,
Snow Leopard 5.6.1


bash-3.2$ java -version
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
bash-3.2$ java -cp clojure-1.0.0.jar clojure.lang.Repl
Clojure 1.0.0-
user=> (defstruct s1 :a :b)
#'user/s1
user=> (s1 1 2)
java.lang.ClassCastException: clojure.lang.PersistentStructMap$Def
cannot be cast to clojure.lang.IFn (NO_SOURCE_FILE:0)


Thanks

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to