REBOL3 tracker
  0.9.12 beta
Ticket #0001534 User: anonymous

Project:



rss
TypeBug Statustested Date22-Mar-2010 17:26
Versionalpha 97 CategoryDatatype Submitted bymeijeru
PlatformAll Severityminor Prioritynormal

Summary REFLECT datatype! ignores FIELD argument
Description SPEC-OF a DATATYPE! value yields information about the type. It turns out that TITLE-OF etc. yield the same information, even REFLECT with a nonsense word as second parameter.
Example code
>> spec-of integer!
== make object! [
    title: "64 bit integer"
    type: 'scalar
]
>> reflect integer! 'spec
== ;; the same
>> reflect integer! 'x
== make object! [
    title: "64 bit integer"
    type: 'scalar
] ;; again the same

Assigned ton/a Fixed inalpha 98 Last Update6-May-2010 09:28


Comments
(0002106)
meijeru
22-Mar-2010 17:29

There is some logic to this: the type of the first argument of REFLECT dictates the allowable values of the second argument, so the first argument is tested first, and in the case of a DATATYPE! the test on the second argument is simply forgotten.
(0002108)
BrianH
22-Mar-2010 23:14

Still, the REFLECT action of datatype! should do a little screening, if only to allow more reflectors to be added later.
(0002284)
Carl
1-May-2010 00:03

Also: reflectors like title should return the title string. Fixed.

Date User Field Action Change
6-May-2010 09:28 BrianH Status Modified built => tested
1-May-2010 00:03 carl Comment : 0002284 Added -
1-May-2010 00:02 carl Fixedin Modified => alpha 98
1-May-2010 00:02 carl Status Modified reviewed => built
22-Mar-2010 23:14 BrianH Comment : 0002108 Added -
22-Mar-2010 23:13 BrianH Status Modified submitted => reviewed
22-Mar-2010 23:13 BrianH Summary Modified REFLECT ignores FIELD argument when other argument is a DATATYPE! => REFLECT datatype! ignores FIELD argument
22-Mar-2010 23:13 BrianH Code Modified -
22-Mar-2010 23:13 BrianH Category Modified Native => Datatype
22-Mar-2010 23:13 BrianH Type Modified Issue => Bug
22-Mar-2010 17:29 meijeru Comment : 0002106 Added -
22-Mar-2010 17:26 meijeru Ticket Added -