From: Jos Backus Date: 2002-02-23T09:54:28+09:00 Subject: TRW: block call question Page 282 of TRW has the following example: def take_block(a, &block) puts block.type a.times {|i| block[i, i*i]} end take_block(3) {|n,s| puts "#{n} squared = #{s}"} This example also shows the use of braces ({}) as an alias for the call method. Now am I correct in assuming that what was really meant here was ``brackets ([])'' instead, the equivalent using call being a.times {|i| block.call(i, i*i)} ? -- Jos Backus _/ _/_/_/ Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ josb@cncdsl.com _/_/ _/_/_/ use Std::Disclaimer;