Hi,

Am 02.01.2010 um 12:23 schrieb Konrad Hinsen:

> (deftype Bar
>   [i]
>   Foo
>     (foo [] (new Bar (inc i))))
> 
> Its drawback is relying on an undocumented feature: the value of Foo  
> inside the methods is the class Foo being defined.

Isn't this only the case for AOT compiled deftype? For dynamic it's Bar_123 or 
so.

Concerning the performance impact: When used in a homogeneous environment, the 
extend version will be almost as fast as the directly defined method, if I 
understood Rich correctly.

Sincerely
Meikel

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