hg: lambda/lambda/langtools: Next round of implementation reflecting the latest 'State of the Lambda' draft; implemented features are:

Maurizio Cimadamore maurizio.cimadamore at ORACLE.COM
Tue Jul 27 08:12:51 PDT 2010


Hi Peter,
thanks for the precious input; I just wanted to let you know that the 
issues you raised should be fixed in the next implementation round.

Thanks
Maurizio


On 27/07/10 14:44, Peter Levart wrote:
> class Closures
> {
>    public interface ComparableF { Comparable invoke(); }
>    public interface StringF { String invoke(); }
>
>    public static void say(StringF stringFunc) {
>      System.out.println("stringFunc says: " + stringFunc.invoke());
>    }
>
>    public static void say(ComparableF comparableFunc) {
>      System.out.println("comparableFunc says: " + comparableFunc.invoke());
>    }
>
>    public static void main(String[] args)
>    {
>      say(#{ 123 });
>      say(StringF #{ "Hello" });
>    }
> }
>
>    



More information about the lambda-dev mailing list