REBOL3 tracker
  0.9.12 beta
Ticket #0000985 User: anonymous

Project:



rss
TypeBug Statustested Date25-Jun-2009 15:43
Versionalpha 62 Categoryn/a Submitted bymeijeru
PlatformAll Severityminor Prioritynormal

Summary set-theoretical operations do not work on blocks of datatype values
Description Observing that to-block on a typeset produces a block of datatype values, I tried the following:

difference system/catalog/datatypes to-block any-type!

(this should give end!, the only one that is not in any-type!)
To my disappointment, there was an error message. The others (intersect, union etc.) also do not work. Comparison of datatype values for equality is not forbidden, and that is all that difference has to do. Note that the operations do work on the typesets themselves!
Example code
>> difference system/catalog/datatypes to-block any-type!
** Script error: datatype! type is not allowed here

>> (last to-block any-type!) == (last system/catalog/datatypes)
== true ; comparison of datatypes is feasible - this expression uses the fact that both blocks are ordered

>> difference make typeset! system/catalog/datatypes any-type!
== make typeset! [end!]

Assigned ton/a Fixed inalpha 64 Last Update29-Jun-2009 17:02


Comments
(0001069)
BrianH
25-Jun-2009 21:16

You should probably mention in a comment here the list of functions that need to be fixed.
(0001071)
meijeru
25-Jun-2009 21:25

DIFFERENCE UNION INTERSECT UNIQUE EXCLUDE

Date User Field Action Change
29-Jun-2009 17:02 BrianH Status Modified built => tested
28-Jun-2009 22:47 carl Fixedin Modified => alpha 64
28-Jun-2009 22:47 carl Status Modified reviewed => built
25-Jun-2009 21:25 meijeru Comment : 0001071 Added -
25-Jun-2009 21:16 BrianH Comment : 0001069 Added -
25-Jun-2009 21:14 BrianH Description Modified -
25-Jun-2009 21:14 BrianH Code Modified -
25-Jun-2009 21:14 BrianH Status Modified submitted => reviewed
25-Jun-2009 15:43 meijeru Ticket Added -