Laurent PETIT a écrit :
> 2009/2/13 Christophe Grand <christo...@cgrand.net 
> <mailto:christo...@cgrand.net>>
>
>
>     Laurent PETIT a écrit :
>     > Hello,
>     >
>     > Thanks for having shared that,
>     >
>     > Do you know if there's a way to overload methods with the same
>     arity,
>     > then ?
>     >
>     > I'm thinking about .read(char ) .read(byte ) .read(String )
>     > .read(Integer ) ... for example,  ?
>     Create functions named -read-char -read-byte -read-String
>     -read-Integer.
>
>
>
> Is it documented ? 

I can't find a reference to it.

The documentation says:
At runtime, a call to some method foo of the generated class will find 
the current value of the var implementing.namespace/prefixfoo and call it.

The truth is that a call to some method foo will first try to find the 
current value of the var 
implementing.namespace/prefixfoo-arg1SimpleTypeName-arg2SimpleTypeName-... 
(or implementing.namespace/prefixfoo-void if no args) and if this 
current value is null, it will fallback to implementing.namespace/prefixfoo.

Christophe

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