In article <Pine.LNX.4.30.0204291803260.23780-100000 / candle.superlink.net>, David Alan Black wrote:
> In [ruby-talk:8993], matz said:
>     * A range enumeration cannot go back, it's upward only.
>     * But A range with end point less than start point is valid.
>     * Thus 1..-1 is a completely valid range object.
>     * Array and String internally convert negative end point into
>       size+n, where n is a negative number.
>     * So range n..-m is interpreted as n..(size-m), thus works fine (if
>       n <= (size-m)).

	I checked ruby-talk (thanks for notice).

	Matz posted this about 30000 mails before this one - so he maybe
	changed his mind... :-)

	This patch will add desired functionality for Numeric values,
	not for String (because it's hard to decide what's pred of
	String).

	This patch doesn't break anything... just makes each and step
	working...

	So what do you think?

		Michal

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michal Rokos                         Czech Technical University, Prague
E-mail:m.rokos / sh.cvut.cz  ICQ:36118339  Jabber:majkl / jabber.sh.cvut.cz
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-