Hi,

> I finally found time to further investigate this.
Thanks for investigating it.

> Am I doing something wrong?  If not, I'll file a ticket.
No it's indeed a bug, could you please file a ticket.
By the way I've made a shorter version of your code:
-------
framework 'Cocoa'

s1 = NSMutableString.stringWithString("this is a test script.")
s1.sub!(/test/, "あ")
puts s1 #=> this is a  ̄チツ script.

s2 = NSMutableString.stringWithString("this is a test script.")
s2[10..14] = "あ"
puts s2 #=> this is a  ̄チツ script.
-------
(in fact sub! uses []= internally)

Cheers,
Vincent
_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to