On Nov 26, 12:45 am, MonkeeSage <MonkeeS... / gmail.com> wrote:
> I'm not sure how to confirm it, other than just looking at the source,
> and since I'm very poor at C programming, it probably wouldn't help
> for me to try that.

Well, I did anyhow...

http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8/ruby.h
http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8/string.c

And I think the functions of interest are str_new3 and str_new4
(called from rb_str_substr). Specifically, the assignment of
RSTRING(str2)->aux.shared. But like I said, I'm not great with C, so I
could be mistaken.

Regards,
Jordan