From: Jim Weirich Date: 2008-10-07T22:40:16+09:00 Subject: [ruby-core:19161] Re: [Feature #615] "with" operator On Oct 7, 2008, at 9:27 AM, Gary Wright wrote: > It seemed to me that something different was being proposed. During > the execution of the block, the object associated with 'self' is > augmented with additional methods. When the block finishes the > additional methods are withdrawn. It isn't the message dispatch > mechanism that is changing but instead the included module list of > the object's singleton class is being temporarily modified. I think there are two conversations going on in this thread. The original proposal for 'with' was to allow methods without an explicit object target to be sent to the object designated in the 'with' command. The second conversation is about temporarily adding methods to the current object in order to get DSL-like capabilities. This was thread was introduced by the suggestion of using the mixin/unmixin techniques. I think these are two separate issues with two different goals. -- -- Jim Weirich -- jim.weirich@gmail.com