REBOL3 tracker
  0.9.12 beta
Ticket #0001885 User: anonymous

Project:

Previous Next
rss
TypeBug Statusbuilt Date26-May-2011 08:55
Versionalpha 111 CategoryMezzanine Submitted byJerryTsai
PlatformAll Severityminor Prioritynormal

Summary SCRIPT? function cannot take STRING! as its argument because to-binary is not bound
Description >> script? {REBOL[] 1}
** Script error: to-binary word is not bound to a context
** Where: switch script?
** Near: switch type?/word source [
file! url! [source: read sour...
Example code

			

Assigned ton/a Fixed inr3 master Last Update20-Jan-2013 06:26


Comments
(0003200)
BrianH
1-Oct-2011 22:46

In base-files.r, change the definition of SCRIPT? to this:


script?: func [
    {Checks file, url, or string for a valid script header.}
    source [file! url! binary! string!]
][
    switch type?/word source [
        file! url! [source: read source]
        string! [source: to binary! source] ; Remove this line if FIND-SCRIPT changed to accept string!
    ]
    find-script source ; Returns binary!
]
(0003240)
BrianH
11-Sep-2012 02:48

Patch implemented here: https://github.com/BrianHawley/rebol-patches
Submitted to the open source R3 project too.
(0003262)
BrianH
14-Dec-2012 01:15

Accepted into rebol/r3.

Date User Field Action Change
20-Jan-2013 06:26 BrianH Comment : 0003262 Modified -
20-Jan-2013 06:26 BrianH Status Modified pending => built
20-Jan-2013 06:26 BrianH Fixedin Modified => r3 master
14-Dec-2012 01:15 BrianH Comment : 0003262 Added -
14-Dec-2012 01:11 BrianH Status Modified built => pending
14-Dec-2012 01:11 BrianH Fixedin Modified 2.101.0 => none
14-Dec-2012 00:56 BrianH Status Modified reviewed => built
14-Dec-2012 00:56 BrianH Fixedin Modified => 2.101.0
12-Dec-2012 23:23 BrianH Status Modified pending => reviewed
12-Dec-2012 22:10 BrianH Status Modified reviewed => pending
12-Dec-2012 19:43 BrianH Comment : 0003240 Modified -
11-Sep-2012 02:48 BrianH Comment : 0003240 Added -
1-Oct-2011 22:46 BrianH Comment : 0003200 Added -
26-May-2011 17:57 BrianH Status Modified submitted => reviewed
26-May-2011 17:57 BrianH Category Modified Unspecified => Mezzanine
26-May-2011 17:57 BrianH Description Modified -
26-May-2011 08:55 JerryTsai Ticket Added -