From: Jack Dempsey Date: 2002-01-24T14:04:01+09:00 Subject: RE: Array.last Weirdness you can't set a value with last...you'll have to find the last index value and then say array[lastvalue] = 'whatever' Jack > -----Original Message----- > From: Jesse Jones [mailto:jesjones@mindspring.com] > Sent: Wednesday, January 23, 2002 11:56 PM > To: ruby-talk ML; undisclosed-recipients: > Subject: Array.last Weirdness > > > I'd expect the following code: > > array = ["hello"] > array.last += " world" > puts array > > to print "hello world", but instead I get errors like "undefined method > `last=' for ["hello"]:Array (NameError)". This doesn't seem too good... > > -- Jesse >