From: Bertram Scharpf Date: 2007-06-05T22:50:46+09:00 Subject: Re: Writing method "change!" for String Hi, Am Dienstag, 05. Jun 2007, 22:16:33 +0900 schrieb dblack@wobblini.net: > > I think even the original idea probably wasn't a good !-candidate > (since bang methods generally have non-bang equivalents, whereas > methods with names that imply change or other "danger" [like replace] > don't), As far as I see banged methods are mostly implemented as class String def modify_it! ... end def modify_it str = dup str.modify_it! str end end (Of course some C equivalent.) So, if Mike means what he does he can easily add the counterpart. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de