[REBOL] Re: SKIP with *very* large values
From: carl:cybercraft at: 18-May-2002 0:29
On 17-May-02, Tom Conlin wrote:
> so I do not think it is a bug that skip returns nonsense when it
> gets nonsense but the doc could indicate non-integer numbers! are
> invalid as arguments.
The datatype 'skip accepts is number!, not integer! ...
>> ? skip
SKIP series offset
Returns the series forward or backward from the current position.
SKIP is an action value.
series -- (Type: series port)
offset -- Can be positive, negative, or zero. (Type: number)
but I guess that's for the larger integers floats allow so that bigger
series can be handled. Still, I do think we should get an error if
decimals are not to be used. We get them with 'copy for instance...
>> copy/part [1 2 3 4] 2
== [1 2]
>> copy/part [1 2 3 4] 2.2
** Script Error: Invalid /part count: 2.2
** Near: copy/part [1 2 3 4] 2.2