#712: Feature Request: Add Support for C-Level Blocks
-------------------------------+--------------------------------------------
Reporter: cwdi...@… | Owner: lsansone...@…
Type: enhancement | Status: new
Priority: blocker | Milestone: MacRuby 0.7
Component: MacRuby | Keywords: block
-------------------------------+--------------------------------------------
Comment(by martinlagarde...@…):
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/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel