Sebastian Hungerecker
12/16/2008 11:47:00 AM
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