Hello group,

I am working with edge Clojure and, as of today, noticed that
deftype's behavior has changed (which is expected as it is still
alpha). The version in question is:

clojure-1.2.0-master-20100420.150114-37.jar

Here is my REPL interaction which demonstrates the difference:

user> (defprotocol HelloWorld (say-hello [this]))
HelloWorld
user> (deftype HelloJoe [] HelloWorld (say-hello [this] "Hello Joe"))
user.HelloJoe
user> (def hello (HelloJoe))
; Evaluation aborted
Expecting var, but HelloJoe is mapped to class user.HelloJoe
user> (def hello (user.HelloJoe.))
user> (say-hello hello)
"Hello Joe"

Before today (def hello (HelloJoe)) would not cause an error.

Is this a bug or a new feature of deftype?

Thanks,
Brenton

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