From: sto.mar@... Date: 2013-03-13T06:44:56+09:00 Subject: Re: Confusion with Strings Am 12.03.2013 21:44, schrieb Cliff Rosson: > Language problems here. Not worth getting worked up over imho. I disagree, considering the by now hundreds(!) of pointless, unreflected, confused posts. Instead of helping people with real problems, too many people --myself included, sadly enough-- waste their time with these endlessly dragged on discussions over banalities. > > On Tue, Mar 12, 2013 at 1:40 PM, Love U Ruby > wrote: > > @Scott. > > yes I do here it ia: > > >> s = "hello" > => "hello" > >> s["e"] = "u" > => "u" > >> s > => "hullo" > > The answer to the line **a too-high or too-low numerical index ** > > >> str = 'aaa' > => "aaa" > >> str[-4] = "x" > IndexError: index -4 out of string > from (irb):57:in `[]=' > from (irb):57 > from C:/Ruby193/bin/irb:12:in `
' > >> str[-5] = "x" > IndexError: index -5 out of string > from (irb):58:in `[]=' > from (irb):58 > from C:/Ruby193/bin/irb:12:in `
' > >> str[4] = "x" > IndexError: index 4 out of string > from (irb):59:in `[]=' > from (irb):59 > from C:/Ruby193/bin/irb:12:in `
' > > Actually that word `too big` and `too small` made me to think too much.. > lollzzzzzzz. > > Guys if my understanding with the line is wrong then please correct me. > > -- > Posted via http://www.ruby-forum.com/. > > > > > -- > vizualize.me/cliffrosson --