On Apr 26, 2009, at 7:32 PM, Rick DeNatale wrote: > On Sun, Apr 26, 2009 at 6:48 PM, James Gray > <james / grayproductions.net> wrote: >> Another example is with a transaction() method for a database. >> When using >> such a tool, I often end up with calls where I care about both the >> side >> effects (transactional behavior) and the return value: >> >> db.transaction { >> db[:count] += 1 >> db[:count] >> } > > This one looks a little odd to my eye just because most of the db > transaction delimiting methods I've seen don't return the value of the > block, they are concerned simply with marking a transaction boundary. Interesting. I've been using Amalgalite a lot lately. It definitely returns the value. PStore in the standard library does as well. I have double-checked ActiveRecord, but my expection would be that it does too. Maybe I'm wrong though. James Edward Gray II