Re: fork dies
Kaspar Schiess <[email protected]>
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
No it has not changed...
You can test that by defining
def h
if block_given?
'block'
else
'no block'
end
end
puts h { 'foobar' } # high precedence of {}, binds to h
puts h do 'foobar' end # low precedence of do..end, binds to puts
as it stands, puts ignores blocks passed to it.
So the difference, Eric, is not one of beauty but one of semantics ;).
But then I can of course see the beauty of what you posted !
kaspar - code philosopher
- -- stolen off the net --
All progress is based upon a universal innate desire on the part of
every organism to live beyond its income.
-- Samuel Butler
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAVrcTh6tlx0BWOuARAkhOAKCuBnJzkK8ScMxq6ygP5fFNWnhd/ACgk2nu
G8/o7epA0IMYT1ArCUIvKXA=
=soeV
-----END PGP SIGNATURE-----