#529: Using a Proc as a ‘callback function’ -------------------------------------+-------------------------------------- Reporter: eloy.de.en...@… | Owner: martinlagarde...@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -------------------------------------+-------------------------------------- Changes (by lsansone...@…):
* owner: lsansone...@… => martinlagarde...@… Comment: Thibault, this could be something for you. The challenge here is to JIT compile at runtime for a given Proc a trampoline function that will call its callback, then passing a pointer to the trampoline to the dispatcher. Also, we must keep a reference to the trampoline inside the internal proc structure so that we can avoid generating it more than once and free the machine code once the proc is finalized by the GC. -- Ticket URL: <http://www.macruby.org/trac/ticket/529#comment:3> MacRuby <http://macruby.org/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel