On Sun, Apr 18, 2010 at 1:49 PM, Rob Lachlan <robertlach...@gmail.com>wrote:

> For deeftype, has the syntax for field accessors changed too?
>
> I can't get it to work:
>
> user> (deftype someType [b f])
> user.someType
> user> (def y (new someType 2 3))
> #'user/y
> user> (:b y)
> nil
> user> (:f y)
> nil
>
> defrecord works as expected, though.
>

deftype now generates a Java class.

(.b y)
(.f y)

should work

David

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