From: matz@... (Yukihiro Matsumoto) Date: 2001-12-14T02:30:27+09:00 Subject: [ruby-talk:28437] Re: some more finalizer weirdness Hi, In message "[ruby-talk:26958] some more finalizer weirdness" on 01/11/30, Paul Brannan writes: |Then I get this: | | finalizer called | GC starting | leaving | |But if I comment out the line "puts 'foo'", then I get: | | foo | GC starting | finalizer called | leaving The finalizer timing is not deterministic. They are called sometime before interpreter termination. |I don't know what's happening here, but my first suspicion is that it |has something to do with bindings (?). Any ideas? I guess invoking puts "foo" preserves its receiver b. matz.