REBOL3 tracker
  0.9.12 beta
Ticket #0000663 User: anonymous

Project:



rss
TypeWish Statustested Date24-Feb-2009 23:57
Versionalpha 35 Categoryn/a Submitted byBrianH
PlatformAll Severitytweak Priorityimmediate

Summary Have LOAD/header of script or string insert default header when header missing.
Description Right now, LOAD/header complains if there is no header. It would be better if LOAD/header just insert a default header in that case and not complain. Then the only conditions that would cause LOAD/header to complain would be an invalid header or the attempt to LOAD/header a non-script, such as a directory.
Example code
; Current behavior
>> load/header "1"
** syntax error: Script is missing a REBOL header: 1

** Note: use WHY? for more about this error

; Desired behavior
>> load/header "1"
== [make object! [
        Title: "Untitled"
        Name: none
        Version: none
        Date: none
        File: none
        Author: none
        Needs: none
        Type: none
        Export: none
        Local: none
        Content: none
    ] 1]

Assigned ton/a Fixed inalpha 38 Last Update25-Mar-2009 05:52


Comments
(0000470)
BrianH
24-Feb-2009 23:59

This change is absolutely required to fix bugs #661 and #662. Implemented in mezz-load 2375.

Date User Field Action Change
25-Mar-2009 05:52 BrianH Fixedin Modified => alpha 38
25-Mar-2009 05:52 BrianH Status Modified pending => tested
4-Mar-2009 21:06 BrianH Comment : 0000470 Modified -
27-Feb-2009 03:04 BrianH Comment : 0000470 Modified -
26-Feb-2009 02:38 BrianH Priority Modified high => immediate
24-Feb-2009 23:59 BrianH Comment : 0000470 Added -
24-Feb-2009 23:58 BrianH Code Modified -
24-Feb-2009 23:58 BrianH Status Modified submitted => pending
24-Feb-2009 23:57 BrianH Ticket Added -