[MacRuby-devel] [MacRuby] #712: Feature Request: Add Support for C-Level Blocks

MacRuby ruby-noreply at macosforge.org
Thu May 13 11:53:44 PDT 2010


#712: Feature Request: Add Support for C-Level Blocks
-------------------------------+--------------------------------------------
 Reporter:  cwdinfo@…          |       Owner:  lsansonetti@…        
     Type:  enhancement        |      Status:  new                  
 Priority:  blocker            |   Milestone:  MacRuby 0.7          
Component:  MacRuby            |    Keywords:  block                
-------------------------------+--------------------------------------------

Comment(by martinlagardette@…):

 For the 2nd form, that's not really how ruby works. If lambdas and Procs
 exist, it is for a reason. One of these reasons being that a method is not
 an object. It's not a first-class citizen. Procs are. What you can do,
 however, is call `method(:handler)` to get a Method object. Whatever you
 do, in ruby, `handler` will call the `handler` method and use its result
 as the object being referenced.

 As for the 3rd form, I like it, but we'll have to see how (and if) it is
 possible to implement it :-).

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



More information about the MacRuby-devel mailing list