REBOL3 tracker
  0.9.12 beta
Ticket #0001354 User: anonymous

Project:



rss
TypeWish Statustested Date25-Nov-2009 12:26
Versionalpha 95 CategoryNative Submitted bymeijeru
PlatformAll Severityminor Prioritynormal

Summary POKE on bitsets should allow NONE value (treated the same as FALSE)
Description To unset a bit, one needs to poke with FALSE (not NONE). When testing a bit, PICK yields NONE for an unset bit (not FALSE).
I propose to admit NONE as valid value for POKE (= FALSE).
Example code
>> pick charset "abc" #"a"
== true
>> pick charset "abc" #"d"
== none
>> poke charset "abc" #"d" true
== make bitset! #{00000000000000000000000078}
>> poke charset "abc" #"a" false
== make bitset! #{00000000000000000000000030}
>> poke charset "abc" #"a" none
** Script error: invalid argument: none
** Where: poke
** Near: poke charset "abc" #"a" none


Assigned ton/a Fixed inalpha 97 Last Update7-Feb-2010 22:34


Comments

Date User Field Action Change
7-Feb-2010 22:34 BrianH Status Modified built => tested
7-Feb-2010 00:39 Carl Fixedin Modified => alpha 97
7-Feb-2010 00:39 Carl Status Modified reviewed => built
26-Nov-2009 00:27 BrianH Summary Modified PICK and POKE on bitsets are inconsistent in type of bitset element => POKE on bitsets should allow NONE value (treated the same as FALSE)
26-Nov-2009 00:27 BrianH Description Modified -
26-Nov-2009 00:27 BrianH Code Modified -
26-Nov-2009 00:27 BrianH Status Modified submitted => reviewed
26-Nov-2009 00:27 BrianH Type Modified Issue => Wish
25-Nov-2009 12:26 meijeru Ticket Added -