I think you need to read something comprehensive before any of these
replies start to make sense, I would recommend Joy Of Clojure, or some good
blog posts.

This might be a good starting point with some links for further reading:
http://tech.puredanger.com/2011/08/12/subclassing-in-clojure/

To understand the issues fully will take a little effort.


On Tue, Jun 18, 2013 at 7:43 AM, Hussein B. <hubaghd...@gmail.com> wrote:

> Hmm,
> then why Clojure docs
> http://clojuredocs.org/clojure_core/clojure.core/reify mentions 'object':
>
> protocol-or-interface-or-Object
> (methodName [args+] body)*
>
>
> On Tuesday, June 18, 2013 1:41:57 PM UTC+2, Jim foo.bar wrote:
>>
>>  On 18/06/13 12:34, Hussein B. wrote:
>>
>> Since reify allows us to override methods of an object, it is better to
>> do:
>>
>>
>> 'reify' allows you to* implement*/*satisfy* interface-methods - not to
>> override concrete ones.
>>
>> user=> (reify String
>>   #_=>  (length [this] (count this)))
>>
>> user=> CompilerException java.lang.**IllegalArgumentException: only
>> interfaces are supported, had: java.lang.String,
>> compiling:(NO_SOURCE_PATH:1:1)
>>
>> Jim
>>
>  --
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to