From: ts Date: 2001-09-08T23:59:48+09:00 Subject: [ruby-talk:21003] Re: destructor >>>>> "N" == Ned Konz writes: N> Why are you passing the block to new() here? What if it doesn't take one? It is ignored. N> Also, what happens when there's an exception in new() after resource N> acquisition? Would it make more sense to put the call to new() after the N> begin? Probably to have the same than pigeon% ruby -e 'File.foreach("a1234") {|l| p l}' -e:1:in `foreach': No such file or directory - "a1234" (Errno::ENOENT) from -e:1 pigeon% Guy Decoux