POC javac can compile invokedynamic
Rémi Forax
forax at univ-mlv.fr
Wed Oct 1 10:10:16 PDT 2008
Jochen Theodorou a écrit :
> Frank Wierzbicki schrieb:
>
>> On Sat, Sep 13, 2008 at 12:49 AM, Charles Oliver Nutter
>> <charles.nutter at sun.com> wrote:
>>
>>> // MyCode.java
>>> import static DynamicUtil.Dynamic
>>> public class MyCode {
>>> public void doSomething() {
>>> String a = "foo";
>>> Dynamic(a).someOtherMethod();
>>> }
>>> }
>>>
>> That looks very convenient indeed.
>>
>> This is only barely on-topic, but have you guys seen the proposed C#
>> syntax for this sort of thing?
>>
>> http://blogs.msdn.com/charlie/archive/2008/01/25/future-focus.aspx
>>
>
> this method or cast based solution is very convenient, because you
> actually don't need to change anything in the language... especially no
> new keywords!
>
Hi blackdrag,
furthermore the dynamic bloc defines an instruction and not an expression.
> bye blackdrag
>
>
Rémi
More information about the mlvm-dev
mailing list