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

[REBOL] Re: [bug?] Problem with 'load

From: rotenca:telvia:it at: 4-Dec-2003 16:24

Hi Sunanda,
> troublesome-script: { > , > REBOL [needs: [9.9.9 xxx]] > } > script? troublesome-script ;; finds a valid header : correct! > load-header troublesome-script ;; Romano's script -- finds a valid header: > correct! > load troublesome-script ;; fails due to the 'need > ** Script Error: This script needs xxx or better to function correctly > ** Near: load troublesome-script > load/all troublesome-script ;; fails due to the preamble > ** Syntax Error: Invalid word -- , > ** Near: (line 2) , > Looks like I am going to have to do a 'load and then trap and accept the > 'needs error. > A more elegant solution would be welcome,
troublesome-script: { , REBOL [needs: [9.9.9 xxx]] } load-all-script: func [s][ if s: script? s [ load/all s ] ] load-all-script troublesome-script --- Ciao Romano