I\'m trying to use Ruby 1.9.1 for an embedded scripting language, so that \"end-user\" code gets written in a Ruby block. One issue with this is that I\'d like the users to
You are looking it from the wrong point of view. This is an issue of thing, not the lambda.
thing
def thing(*args, &block) block.call.tap do |value| puts "value=#{value}" end end thing { 6 * 7 }