From: matt@... (matt neuburg) Date: 2008-05-08T03:55:06+09:00 Subject: Re: precedence of single-line rescue and assignment matt neuburg wrote: > def boom > raise "boom" > end > y = "" > y += boom rescue "fine" > puts y # "" I think what's really going on here is that what we often see described as a single-line use of "rescue" is actually a single-*expression* use of "rescue", since the above can be fixed using parentheses: y += (boom rescue "fine") I hadn't realized this was even legal. m. -- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ Leopard - http://www.takecontrolbooks.com/leopard-customizing.html AppleScript - http://www.amazon.com/gp/product/0596102119 Read TidBITS! It's free and smart. http://www.tidbits.com