Charles Hixson wrote:

> I'm considering:
>    def initialize ()
>         ...
>         ObjectSpace.define_finalizer(@@words, proc { flush })
> 
> But I don't know how to evaluate whether it's a good idea or not...or 
> even how to tell afterwards (presuming it doesn't throw a "compile-time" 
> error).

What about using at_exit?

Regards,
Florian Gross