From: Dat Nguyen Date: 2000-03-24T22:10:26-05:00 Subject: [ruby-talk:02151] Re: begin/else >From: Dave Thomas >Reply-To: ruby-talk@netlab.co.jp >To: ruby-talk@netlab.co.jp (ruby-talk ML) >Subject: [ruby-talk:02149] begin/else >Date: 24 Mar 2000 20:22:35 -0600 > > >Guess what I'm documenting today ;-) > >Is there any difference at all between > > begin > codeA > rescue > ... > else > codeB > end > >and > > begin > codeA > codeB > rescue > ... > end > >(assuming codeB doesn't throw an exception?) > > >Dave I guess: In the first case, if codeA throws an exception, codeB won't be executed at all. In the second case, codeB will be executed anyway no matter if codeA throws an exception or not. Dat ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com