On Thu, Feb 27, 2003 at 11:19:46PM +0900, Tim Hunter wrote:
> In the end which bang methods get added is mostly going to be decided
> by user input. Which ones do you think would be useful?

Could you catch them using method_missing? Or if you wrote them all as bang
methods, you could wrap the non-bang methods as:

  def foo
    dup.foo!
  end

(Array#sort is implemented like this, using Array#sort!). But maybe 'dup'
isn't good enough in this case, as it's not a deep copy. Just a thought
anyway.

Regards,

Brian.