-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 21.12.2011 01:53, Eric Hodel wrote:
> require 'return_bang/everywhere'
> 
> def some_method deeply_nested # never reached end
> 
> def deeply_nested return! end
> 
> return_here do some_method end # resumes here
> 
> == Install
> 
> sudo gem install return_bang
> 

Where is this different from the builtin catch/throw mechanism?

=========================================
def some_method
  deeply_nested
  # never reached
end

def deeply_nested
  throw :foo
end

catch(:foo) do
  some_method
end
# resumes here
=========================================

Vale,
Marvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJO8hqpAAoJELh1XLHFkqhaON4IAJEYVUzd9z/Xtig51KFtRtn3
I/HuBEIK2wXTtJgzCE6UWjxFc4PSRluClyNYl9WCNFVYS+VRIoz4xhqrVxHYcTyl
wDXobkagZEF2NvHi31hVL7fTlh2oJwhwc94IouFvDK1uuIs8WSg9lRQj89oIm/NK
zJXIaLg/kGNMn23Q1N0k4VnpRwgJsehewHGtIeLCIRiRaM5/FzES3XpX5eyiF3Kz
IHoqb5FBIMYEe9kjXeVxv57Rl1n95LoGv6bGKCwQV0qog466uNA9hRK6qoHERqfr
15hNoKL21cYOAKb6ZxYHApsoRJKjDPyvA5pFGiVwLUOr3OQFg6bZ3TvKPyYM3nc=
=g5r4
-----END PGP SIGNATURE-----