On Wed, 23 May 2001 04:43:16 +0900
Colin Steele <colin / webg2.com> wrote:

> 
> a = ['a', 'b', 'c']
> a[a.size - 1] += 'd'  # ok
> a.last += 'x'         # not ok
> 
> Why aren't these two equivalent?  Seems... weird.

Well,

a.last += 'x' 
a.last = a.last + 'x'
a.send("last=", a.last + 'x')

and there's no "last=" method in Array.  Or are you saying there should
be?

However,
a.last << 'x'
works fine.