From: Newbie Date: 2006-09-13T16:50:47+09:00 Subject: Re: Struggling with Blocks The OP is confused as to why the different semantics exist at all. It appears (to a newbie) to be very arbitrary. One pair of delimiters for a block being passed to a yield method or turned into a proc, another for a block with error trapping. gwtmp01@mac.com wrote: > There is certainly a syntactic similarity to begin/end and do/end but > why are the semantics of those particular pairs confusing? > Why stop there? You also have to deal with: module/end, class/end, > def/end, if/end, case/end. > > At some point you just have to realize that different syntactic blocks > have different semantics and then learn the semantics. -- Posted via a free Usenet account from http://www.teranews.com