[MacRuby] #734: Mustache fails on call to render.

MacRuby ruby-noreply at macosforge.org
Fri Dec 10 19:04:15 PST 2010


#734: Mustache fails on call to render.
----------------------------------------+-----------------------------------
 Reporter:  larry@…                     |       Owner:  lsansonetti@…        
     Type:  defect                      |      Status:  new                  
 Priority:  minor                       |   Milestone:  MacRuby 1.0          
Component:  MacRuby                     |    Keywords:  mustache #reduction  
----------------------------------------+-----------------------------------

Comment(by lsansonetti@…):

 The problem here is that the compiler compiles a recursive call to the
 current function, bypassing the dispatcher logic, as an optimization.

 An appropriate solution would be to introduce a global variable (as we
 already do to optimize things like Fixnum#+), change it when the method is
 re-defined and check before calling ourself recursively.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/734#comment:8>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list