From: Sebastian Hungerecker Date: 2008-12-16T20:46:36+09:00 Subject: Re: Ruby Blocks and C Function Pointers Terry Cooper wrote: > I'm just starting to learn Ruby and would appreciate a simple practical > explanation of how the functionality of these mechanisms differ. A function pointer requires a named function to be defined first, which a) is a little more to type and b) pollutes the function name space. Also blocks are closures (i.e. you can access local variables of the enclosing scope when inside a block) while functions/methods are not. HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826