Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[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
USAGE: SKIP series offset DESCRIPTION: Returns the series forward or backward from the current position. SKIP is an action value. ARGUMENTS: 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 -- Carl Read