Rebol strings (generalities of...)
[1/2] from: lmecir::geocities::com at: 11-Oct-2000 15:56
A model of Rebol string implementation (written in Java):
class RebolStringStorage {
char [] storage;
int storageLength;
int stringLength;
}
class RebolString {
int position;
RebolStringStorage storage;
}
Regards
Ladislav
[2/2] from: lmecir:geocities at: 11-Oct-2000 16:13
Hi,
when testing the properties of Rebol strings I came to:
>> a: skip [1 2 3 4 5 6] 3
== [4 5 6]
>> index? a
== 4
>> b: head a
== [1 2 3 4 5 6]
>> remove back tail b
== []
>> b
== [1 2 3 4 5]
>> remove back tail b
== []
>> b
== [1 2 3 4]
>> remove back tail b
== []
>> b
== [1 2 3]
>> remove back tail b
== []
>> b
== [1 2]
>> index? a
** Script Error: Out of range or past end.
** Where: index? a
which seems to be in accordance with the model proposed...
Ladislav