On Thu, May 26, 2011 at 5:25 AM, Rémi Forax <fo...@univ-mlv.fr> wrote: > Charles, > why do you use IRubyObject exactly ? > why not using Object instead ? > > I use Object in PHP.reboot and see no problem.
Legacy, mostly... JRuby still supports Java 5 and 6, which limits how specialized we can make call paths. Requiring that everything be IRubyObject means we always have only a single invokeinterface to retrieve metaclass, access "instance variables", and so on. JRuby designed from scratch today would certainly use Object. - Charlie _______________________________________________ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev