John Rose schrieb:
> On Mar 10, 2009, at 6:17 PM, Jochen Theodorou wrote:
> 
>> how do I get the hard link from the class to the meta
>> class here?
> 
> Interface injection is (will be) built on top of method handles.
> Method handles can close over live data values  
> (MethodHandles.insertArgument).
> So you can inject a one argument method, curried with a tailored  
> MetaClass value, to fulfill a zero-argument method injection.
> That's an interesting facet of runtime injection, making it more  
> powerful than static injeciton.

ah, ok, haven't thought of that... and can I use different MethodHandles 
for different types I inject into? and does the bootstrapping method for 
that include the type I am injecting into? Because I have to let for 
example Object return a different value than String.

bye Jochen

-- 
Jochen "blackdrag" Theodorou
The Groovy Project Tech Lead (http://groovy.codehaus.org)
http://blackdragsview.blogspot.com/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to