Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Version incompatibilities

From: SunandaDH:aol at: 3-Dec-2005 16:55

Sunanda:
> The problem is that Core in older versions cannot load the header of some > scripts written for more recent versions.
I'd like to revise my analysis here, having looked a little closer: It's not load/header/next (at least I don't think it is any more). It's an oddity with parse. If you use this script from the library: http://www.rebol.org/cgi-bin/cgiwrap/rebol/download-a-script.r?script-name=col or-code.r and ask it to colorize a simple script like this.... simple-script: {rebol [] does []} ....It's going to crash in older versions -- including the version of REBOL.exe we use for CGIs in the Library:
>> color-code simple-script
** Script Error: Invalid argument: ?native? ** Where: color-code ** Near: parse/all text blk-rule: [ What is strange is that color-code *does* work for all but two of the scripts in the Library, despite tripping over on such a simple example. If anyone has any insights into how to patch the parse to work around whatever the problem is, I'd be very grateful. To summarise our constraint: upgrading the version of REBOL.exe used in the Library is a lot of pain, so if we can get color-code to work on the existing version, it will be a big step in the right direction. Thanks! Sunanda.