On Wed, May 6, 2009 at 11:38 AM, John Wilson <[email protected]> wrote: > > 2009/5/6 John Cowan <[email protected]>: >> >> In my language, I need objects which represent Java static methods. > > > How about: > > public abstract class Function3 { > public static final Function3 foo = new Function3() { > public Object invoke(Object arg1, Object arg2, Object arg3) { > return foo(arg1, arg2, arg3); > } > };
This is just the one-class-per-function design under a new disguise. -- GMail doesn't have rotating .sigs, but you can see mine at http://www.ccil.org/~cowan/signatures --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
