Happy new year.
Yes, we already had a new year.
In message "[ruby-talk:01014] Blocks, Procs, and iterators"
on 99/12/31, Clemens Hintze <c.hintze / gmx.net> writes:
|AFAIK --if I have understood matz right-- there is only a performance
|penalty by using your second example.
I forgot to mention one big difference. You can't swap self with
instance_eval() as in [ruby-talk:01010] by using yield. &block is the
only way to pass blocks around directly.
You can use {|x| yield x} trick for most of the cases, but not for the
instance_eval() case.
|BTW: Best wishes for 2000 to all of the Ruby community and you
|families & friends & ... :-)))
I strongly hope the Ruby book in English will be published this year.
matz.