Da Nedea 12 Februr 2006 19:26 Daniel Nugent napsal: > Hey guys, > > I was working on a DSL for some asynchronous programming stuff and I > realized it'd be really nice if a block could rescue an exception. > > So I went into IRB to see if it works and got a parse error. I > suppose you need a begin... end block or a proper method to have a > rescue block right now. > > I was wondering if there's any reason why this is so? It'd seem > pretty natural to me that a block could have rescue/else/ensure > conditions since a method body can have them. > > Has this been discussed elsewhere? > > Thanks, > > -- > -Dan Nugent I'm afraid I don't quite catch your drift. What do you mean by a block not rescuing an exception? Some example code wouldn't hurt. David Vallner