[#927] UnboundMethod#to_proc — Dave Thomas <dave@...>

I'm wondering what I can do with a Proc generated by

17 messages 2003/04/06

Re: UnboundMethod#to_proc

From: Dave Thomas <dave@...>
Date: 2003-04-07 01:58:45 UTC
List: ruby-core #935
On Sunday, April 6, 2003, at 01:04 PM, Mathieu Bouchard wrote:

> If they have diverging interfaces such that the contracts conflict with
> each other, then maybe they should two subclasses with a common
> superclass, possibly Object or possibly a new class representing 
> whatever
> they might have in common.
>

I was just about to post the same thing: gaving UnboundMethod inherit 
from Method breaks the LSP, and is clearly getting pretty ugly. Perhaps 
'arity' should be a mixin?

Cheers


Dave


In This Thread