metaeducation / rebol-issues

6 stars 1 forks source link

PROTECT and UNPROTECT bitset! #977

Open rebolbot opened 15 years ago

rebolbot commented 15 years ago

Submitted by: BrianH

If we can PROTECT and UNPROTECT bitset! values, this will make global bitsets safer to use.

>> ws: charset "^- "
== make bitset! #{0040000080}
>> protect ws
== make bitset! #{0040000080}

CC - Data [ Version: alpha 62 Type: Wish Platform: All Category: n/a Reproduce: Always Fixed-in:alpha 64 ]

rebolbot commented 15 years ago

Submitted by: Carl

Good one. Happens because:

>> series? make bitset! "123"
== false

Was that change the correct decision?

rebolbot commented 15 years ago

Submitted by: BrianH

Yes. We should add back bitset! to functions where it is useful to do so, like these.