On 6/3/07, Robert Dober <robert.dober / gmail.com> wrote:
> On 6/3/07, Sun Park <geniusleonid / gmail.com> wrote:
> > Sorry, what I meant was :
> >
> > a = "abc"
> > => "abc"
> > a (some method with arguments of 1 and "d")
> > => "adc"
> >
> > I wanted to find out are there any methods behaving like this.
> Yes #[]=, what is wrong with it? Would you prefer a method with a
> different name, I am not sure there is one.
> Robert
> >
> >
> >
>
a = "abc"
p a[1] = "d" # I think the OP wants to see "adc" here
p a # not just here

Harry

-- 

A Look into Japanese Ruby List in English
http://www.kakueki.com/