REBOL3 tracker
  0.9.12 beta
Ticket #0000562 User: anonymous

Project:



rss
TypeBug Statustested Date25-Jan-2009 13:34
Versionalpha 32 Categoryn/a Submitted bySunanda
PlatformAll Severitytrivial Priorityurgent

Summary PRIN and PRINT handle unset! values differently
Description PRIN and PRINT handle unset! values differently: PRINT handles them (accepts [any-type!]), PRIN generates an error (no type spec). This is a regression when compared to R2.

PRINT's behavior is preferable. Please add [any-type!] to the value parameter of PRIN.
Example code
>> print [()]
?unset!?  ; Same as R2, plus the !
>> prin [()]
?unset!?  ; Same as R2, plus the !
>> print ()
?unset!?  ; An improvement over R2
>> prin ()
** Script error: prin does not allow unset! for its value argument

Assigned ton/a Fixed inalpha 38 Last Update25-Mar-2009 10:17


Comments
(0000373)
BrianH
25-Jan-2009 21:58

Updated the description and example code to be less confusing.

I would prefer that PRIN be changed to match PRINT's behavior. This would probably just mean adding [any-type!] to PRIN's type spec.

Date User Field Action Change
25-Mar-2009 10:17 BrianH Status Modified built => tested
25-Mar-2009 04:38 carl Fixedin Modified => alpha 38
25-Mar-2009 04:38 carl Status Modified reviewed => built
26-Feb-2009 03:18 BrianH Comment : 0000373 Modified -
26-Feb-2009 03:18 BrianH Summary Modified Prin and Print behave differently => PRIN and PRINT handle unset! values differently
26-Feb-2009 03:18 BrianH Description Modified -
26-Feb-2009 03:18 BrianH Priority Modified normal => urgent
25-Jan-2009 21:58 BrianH Comment : 0000373 Added -
25-Jan-2009 21:56 BrianH Description Modified -
25-Jan-2009 21:56 BrianH Code Modified -
25-Jan-2009 21:56 BrianH Severity Modified minor => trivial
25-Jan-2009 21:56 BrianH Status Modified submitted => reviewed
25-Jan-2009 13:34 Sunanda Ticket Added -