[REBOL] Re: SKIP with *very* large values
From: tomc:darkwing:uoregon at: 15-May-2002 23:01
thoughts? sure ... promises no.
overall geuss, your decimal! is interperted as an integer.
either the set of bits begins with 1 it is taken as a negative skip
and since before the head is still the head, the block is returned
orherwise the set of bits is interpeted as a large positive skip value
and beyond the tail is still the tail so the tail of tour block is
returned.
time to test the theory
>> a: [ 1 2 3]
== [1 2 3]
>> b: tail a
== []
>> c: skip a 99999999999999999999
== []
>> equal? b c
== true
>> d: head a
== [1 2 3]
>> f: skip a 999999999999999999999
== [1 2 3]
>> equal? d f
== true
at least it does not disprove the theory :)
On Wed, 15 May 2002, Gregg Irwin wrote: