[MacRuby-devel] [macruby] #65: #sub!, #gsub!, and other bang methods mutate frozen strings

macruby ruby-noreply at macosforge.org
Wed May 28 16:13:08 PDT 2008

#65: #sub!, #gsub!, and other bang methods mutate frozen strings
 Reporter:  binary42 at gmail.com  |        Owner:  lsansonetti at apple.com
     Type:  defect              |       Status:  reopened             
 Priority:  minor               |    Milestone:                       
Component:  MacRuby             |   Resolution:                       
 Keywords:                      |  
Changes (by binary42 at gmail.com):

  * status:  closed => reopened
  * resolution:  wontfix =>


 I typoed the original message. I meant it should raise the RuntimeError.
 And you are certainly right about the current behavior of sub!. I must
 have made an error in testing that method. #gsub!, however, is still
 mutating the string.

 (sorry for the confusion)

Ticket URL: <http://ruby.macosforge.org/trac/ticket/65#comment:2>
macruby <http://ruby.macosforge.org/>

More information about the MacRuby-devel mailing list