From: Dave Thomas Date: 2008-03-04T23:03:38+09:00 Subject: Re: How should I document Kernel.exit? On Mar 4, 2008, at 3:17 AM, Yukihiro Matsumoto wrote: > I get it. No bug in finalizer. > > In 1.9, lambda check number of arguments strictly (finalizer takes one > argument, which is object_id of the target), so that you have to > specify argument, e.g. > > at_exit { puts "at_exit function" } > ObjectSpace.define_finalizer("string", lambda{|id| puts "in > finalizer" }) > exit Aarrgh... Subtle. Thank you. /me quickly greps my source code... :) Dave