From: Sebastian Hungerecker Date: 2007-12-28T18:41:07+09:00 Subject: Re: Add Array#first= and Array#last= to std lib Robert Klemme wrote: > So far the only argument against I have seen so far is the question > about assignment to an empty array.  In that case I'd say, either raise > an exception or silently add the element.  Have to think about this a bit. I really don't think that's much of an argument. Since last= would be equivalent to [-1]= in every other case, it should behave like it in this case as well (meaning raise an exception) and if last= uses []= (which I assume, it would) that would automatically be the case anyway. -- Jabber: sepp2k@jabber.org ICQ: 205544826