REBOL 3.0

Finalizing image! as series (or not)

Carl Sassenrath, CTO
REBOL Technologies
15-May-2009 15:50 GMT

Article #0203
Main page || Index || Prior Article [0202] || Next Article [0204] || 12 Comments || Send feedback

From reading the prior blog comments about what is and is not a series, I would propose the following:

series? some-image
true
series? some-bitset
false
series? some-port
false

I'd also propose we use some kind of simple test (just for deciding, not to add to mezz), such as:

is-series?: func [s] [(length? s) = (index? back tail s)]

This test implies that the index position exists, can propagate and be modified. (Hopefully, all existing series datatypes pass it.)

If you think this test is not valid, and that some other test should be used, then mention it now. We will be closing this issue in a day or so, and it will be more difficult to change later.

12 Comments

REBOL 3.0
Updated 21-Nov-2024 - Edit - Copyright REBOL Technologies - REBOL.net