Type | Wish | Status | tested | Date | 25-Nov-2009 12:26 |
---|---|---|---|---|---|
Version | alpha 95 | Category | Native | Submitted by | meijeru |
Platform | All | Severity | minor | Priority | normal |
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 to | n/a | Fixed in | alpha 97 | Last Update | 7-Feb-2010 22:34 |
---|
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 | - |