John Wilson schrieb: [...] > In general you can't just look at the type of a value and decide if it > can be converted to another type. Also, in a dynamic language, the > ability to convert from one type to another can appear or disappear at > will. In Ng it's quite conceivable that I can convert C to D in one > thread and not be able to do it at exactly the same time in another. > I'm not quite sure how groovy does coercion these days but I suspect > it's the same.
Groovy has a fixed set of rules here, so unless the MetaClass is changed you won' be able to influence the method selection process by a method on a argument. The method selection is full in the hands of the called object and its meta class. Groovy does not even need to know a meta class of the argument bye blackdrag -- Jochen "blackdrag" Theodorou The Groovy Project Tech Lead (http://groovy.codehaus.org) http://blackdragsview.blogspot.com/ http://www.g2one.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "JVM Languages" group. To post to this group, send email to jvm-languages@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jvm-languages?hl=en -~----------~----~----~----~------~----~------~--~---