[REBOL] Re: bitset help
From: rotenca:telvia:it at: 27-Sep-2002 18:07
Thanks Gregg and Brett,
it is exactly what i wanted to understand.
I ask myself if you learned all from that RT doc, i did not understand
anything from it!
> On my machine and with this version a bitset seems to have a maximum size of
> 2040.
On my system:
> make bitset! 1024 * 1024
== make bitset! #{
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000...
>> lenght? make bitset! 1024 * 1024
== 1048576
>> about
REBOL/View 1.2.8.3.1 3-Aug-2002
>Here's a little function to represent the bits of a bitset:
> stringbits: func [bitset [bitset!]][
> enbase/base head reverse to-string load find/tail/last form bitset { }
2
> ]
Very useful. Cannot be removed that to-string?
That reverse will not fail on different system? (big-endian/little endian)
---
Ciao
Romano