Here's a simple protocol/deftype example:

(defprotocol FOO
  (doit [this]))

(deftype Foo [_arg]
  FOO
  (doit [this] nil))

(deftype Foo [__arg]
  FOO
  (doit [this] nil))

The first definition of Foo compiles; the second gives

(class: user/Foo, method: create signature: (Lclojure/lang/
IPersistentMap;)Luser/Foo;) Expecting to find unitialized object on
stack
  [Thrown class java.lang.VerifyError]

The failure is coming from java.lang.Class.forName(), but that's not
telling me very much (since it's not clear to me which class cannot be
instantiated, or why not).

Oh, and "unitialized" is a typo.

-- 
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