From: Ned Konz Date: 2001-09-09T00:28:10+09:00 Subject: [ruby-talk:21009] Re: destructor On Saturday 08 September 2001 08:17 am, Dave Thomas wrote: > Ned Konz writes: > > Also, what happens when there's an exception in new() after resource > > acquisition? Would it make more sense to put the call to new() after the > > begin? > > Then that would be 'new's busines to tidy up. If 'new' throws an > exception, then I won't have an object reference to call 'close' on. Of course. Sorry ... pre-coffee ... -- Ned Konz currently: Stanwood, WA email: ned@bike-nomad.com homepage: http://bike-nomad.com