REBOL3 tracker
  0.9.12 beta
Ticket #0001355 User: anonymous

Project:



rss
TypeBug Statustested Date25-Nov-2009 13:42
Versionalpha 95 CategoryNative Submitted bymeijeru
PlatformAll Severityminor Prioritynormal

Summary PICK and POKE behave inconsistently on bitsets specified with NOT
Description PICK takes due account of the negative specification, but POKE does not, it treats the bitset as specified positively!
Example code
>> pick charset [not "a"] #"b"
== true
>> pick charset [not "a"] #"a"
== none
>> poke charset "a" #"b" true
== make bitset! #{00000000000000000000000060}
>> poke charset [not "a"] #"b" true
== make bitset! [not bits #{00000000000000000000000060}]
;; should be #{..40}, since the #"b" position was already TRUE.

Assigned ton/a Fixed inalpha 97 Last Update8-Feb-2010 01:28


Comments
(0001975)
Carl
6-Feb-2010 16:40

Also a problem for APPEND (and INSERT):

>> a: charset [not 0]
== make bitset! [not bits #{80}]
>> append a 1
== make bitset! [not bits #{C0}]

Date User Field Action Change
8-Feb-2010 01:28 BrianH Status Modified built => tested
6-Feb-2010 16:42 Carl Fixedin Modified => alpha 97
6-Feb-2010 16:42 Carl Status Modified reviewed => built
6-Feb-2010 16:40 Carl Comment : 0001975 Added -
26-Nov-2009 00:28 BrianH Code Modified -
26-Nov-2009 00:28 BrianH Status Modified submitted => reviewed
25-Nov-2009 13:42 meijeru Ticket Added -