On Wed, Mar 21, 2012 at 7:32 AM, Charles Oliver Nutter
<head...@headius.com> wrote:
> * Have the generated interface impl look for the real name *last*,
> allowing Ruby names to take priority. This might work, but it would
> change lookup order (but they're cached, so it wouldn't impact perf).
>
> I'm going to try the third option, but I'm open to other suggestions.

This *almost* worked, but changing the order just moves the problem
around. If I make it search for do_it before doIt, that makes a Ruby
do_it work, but if you implement doIt in Ruby it fails the same way
(because it finds the do_it we created for the interface module).

Given that the methods on interface modules aren't really meant to be
called directly, perhaps we could skip adding the aliases? That would
mean the interface would only list doIt and not do_it in its method
list, but it would make the reordering work.

- Charlie

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to