Add Scala-specific JI logic
---------------------------

                 Key: JRUBY-5342
                 URL: http://jira.codehaus.org/browse/JRUBY-5342
             Project: JRuby
          Issue Type: Improvement
            Reporter: Charles Oliver Nutter
            Assignee: Charles Oliver Nutter
             Fix For: JRuby 1.6


David Pollack has started adding JRuby support to his "Lift" Scala-based web 
framework. In order for it to support Scala objects well, he needs a few 
patches so that JI will pick up that certain objects are Scala objects and 
treat them appropriately.

I have pushed his patches thusfar to the "scala" branch. I think if they are 
not too invasive, we should include them.

A few thoughts so far:

* It unconditionally binds "[]" as an alias for "apply" if it's available, 
since Scala treats foo() as a call to foo.apply. I think we should probably do 
this only for Scala objects.
* It adds logic to our reflective binding of *all* methods to replace any 
Scala-mangled operator methods, which could slow down binding non-Scala methods.
* The Scala-specific logic had to be "sprinkled" around a bit. A refactoring of 
JI logic might make it easier to add similar enhancements in the future without 
one-off "sprinklings" of code.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

    http://xircles.codehaus.org/manage_email


Reply via email to