hg: mlvm/mlvm/jdk: meth: add proxy maker for closures
Attila Szegedi
szegedia at gmail.com
Wed May 26 06:05:16 PDT 2010
On 2010.05.25., at 22:57, Charles Oliver Nutter wrote:
> On Tue, May 18, 2010 at 4:44 PM, Rémi Forax <forax at univ-mlv.fr> wrote:
>>
>> [...]
>>
>>> One important question for me is how multi-method interfaces would be
>>> handled. I had originally tried to use Scala's "Function" interfaces
>>> in Duby to represent closures, but they all have multiple abstract
>>> methods that must be handled completely differently. I'd need to
>>> provide my own superclass with default behavior or have a way to
>>> stitch together N handles for N abstract methods.
>>>
>>
>> You can construct a tree of method handles,
>> like Attila's code does.
>
> I'm not sure I understand how this would tie into implementing an
> interface or abstract superclass with many methods...can you
> elaborate?
Honestly, I can't work out either what's Rémi referring to :-)
Attila.
More information about the mlvm-dev
mailing list