TSa:
> Perhaps we
> can live with the numerically lower end always beeing part
> of the range, the larger one never,
I don't think so.
> 0 .. 5 == ( 0, 1, 2, 3, 4)
{ action } for 0 .. 5
is supposed to run for 0,1,2,3,4,5.
But '0 .. ^5' should not mean '( 0, 1, 2, 3, 4, 5)' just because
scalar(^5) is 5.
0 .. ^5 => 0 .. 0 .. 4 => 0 .. 4
I think that '0..^0' should be the empty range, just as '^0'.
> 0 ..-5 == (-1,-2,-3,-4,-5)
Maybe only a "range from low to high" should be auto-listified, and a
bare '0..-5' should remain an error.
(0 ..-5) == (0, -1,-2,-3,-4,-5)
> -5 .. 5 == (-5,-4,-3,-2,-1, 0, 1, 2, 3, 4)
-5 .. ^5
--
Affijn, Ruud
"Gewoon is een tijger."