From: Alan Chen Date: 2002-02-27T05:56:46+09:00 Subject: Re: Rescue Clause On Wed, Feb 27, 2002 at 05:46:18AM +0900, Hal E. Fulton wrote: > ----- Original Message ----- > From: "Sean O'Dell" > Newsgroups: comp.lang.ruby > To: "ruby-talk ML" ; > Sent: Tuesday, February 26, 2002 2:05 PM > Subject: Rescue Clause > > > > Where all can you put rescue clauses? Are these correct: > > > > def > > rescue > > end > > Yes... in older versions, this was not possible. > Introduced in 1.6.*? > > > begin > > rescue > > end > > Yes, the classical form. > > > do > > rescue > > end > > I don't *think* this works... > hmm, should it? > > Hal Fulton Theres also a single statement rescue that I've only recently learned about. However, I'm not sure how to specify which exceptions to rescue. statement rescue value I recently asked if rescue's should be appendable to any ruby block of code -- do..end, if..end, while .. end... etc. IIRC, the only reply's mentioned the single statement rescue, so I'm not sure I was fully understood. -- alan -- Alan Chen Digikata LLC http://digikata.com